Const
Strip all ANSI escape codes from a string.
Returns str with any ANSI escape codes removed.
str
console.log(util.stripVTControlCharacters('\u001B[4mvalue\u001B[0m'));// Prints "value" Copy
console.log(util.stripVTControlCharacters('\u001B[4mvalue\u001B[0m'));// Prints "value"
v16.11.0
Strip all ANSI escape codes from a string.