Skip to main content
The Deno 2 Release Candidate is here
Learn more
function Colors.stripAnsiCode
import { Colors } from "https://deno.land/x/assert_fs@v0.1.0/deps.ts";
const { stripAnsiCode } = Colors;

Remove ANSI escape codes from the string.

Parameters

string: string

to remove ANSI escape codes from

Returns

string