Skip to main content
Module

std/fmt/colors.ts>stripColor

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function stripColor
Deprecated
Deprecated

(will be removed in 1.0.0) Use stripAnsiCode instead.

import { stripColor } from "https://deno.land/std@0.216.0/fmt/colors.ts";

Remove ANSI escape codes from the string.

Parameters

string: string

to remove ANSI escape codes from

Returns

string