Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/wcarbon/deps.ts>Colors.stripColor

CLI tool for Website Carbon's API
Go to Latest
function Colors.stripColor
import { Colors } from "https://deno.land/x/wcarbon@v1.3.2/deps.ts";
const { stripColor } = Colors;

Remove ANSI escape codes from the string.

Parameters

string: string

to remove ANSI escape codes from

Returns

string