Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
function Colors.stripAnsiCode
import { Colors } from "https://deno.land/x/assert_fs@v0.1.1/deps.ts";
const { stripAnsiCode } = Colors;

Remove ANSI escape codes from the string.

Parameters

string: string

to remove ANSI escape codes from

Returns

string