Skip to main content

stripAnsi

Callable

  • stripAnsi(text: string): string

  • Strip all ANSI escape codes from the provided string. Based on strip-ansi.

    import { stripAnsi } from '@boost/terminal';

    const text = stripAnsi(aStringThatContainsAnsi);