Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/fmt/colors.ts>stripAnsiCode

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function stripAnsiCode
import { stripAnsiCode } from "https://deno.land/std@0.218.0/fmt/colors.ts";

Remove ANSI escape codes from the string.

Parameters

string: string

to remove ANSI escape codes from

Returns

string