Skip to main content
Module

std/fmt/colors.ts>stripColor

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

This will be removed in 1.0.0. Use stripAnsiCode instead.

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

Remove ANSI escape codes from the string.

Parameters

string: string

to remove ANSI escape codes from

Returns

string