Skip to main content
Module

std/fmt/colors.ts>stripColor

The Deno Standard Library
Go to Latest
function stripColor
Deprecated
Deprecated

(will be removed in 1.0.0) Use stripAnsiCode instead.

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

Remove ANSI escape codes from the string.

Parameters

string: string

to remove ANSI escape codes from

Returns

string