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

x/dtils/deps.ts>colors.stripAnsiCode

The best unofficial library of utilities for Deno applications
Latest
function colors.stripAnsiCode
import { colors } from "https://deno.land/x/dtils@2.6.1/deps.ts";
const { stripAnsiCode } = colors;

Remove ANSI escape codes from the string.

Parameters

string: string

to remove ANSI escape codes from

Returns

string