Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/dax/src/deps.ts>colors.stripAnsiCode

Cross platform shell tools for Deno inspired by zx.
Extremely Popular
Go to Latest
function colors.stripAnsiCode
import { colors } from "https://deno.land/x/dax@0.38.0/src/deps.ts";
const { stripAnsiCode } = colors;

Remove ANSI escape codes from the string.

Parameters

string: string

to remove ANSI escape codes from

Returns

string