stripVTControlCharacters - Node documentation
function stripVTControlCharacters

Usage in Deno

import { stripVTControlCharacters } from "node:util";
stripVTControlCharacters(str: string): string

Returns str with any ANSI escape codes removed.

console.log(util.stripVTControlCharacters('\u001B[4mvalue\u001B[0m'));
// Prints "value"

Parameters

str: string

Return Type

string