ansi-purge
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

ANSI Purge

A tiny function for deleting ANSI escape sequences from a string.

Install

npm install ansi-purge

Usage

import color from 'tiny-colors';
import ansiPurge from 'ansi-purge';

// Let's remove ANSI escapes from a string

console.log ( ansiPurge ( color.red ( 'Hello' ) ) ); // => 'Hello'

License

MIT © Fabio Spampinato

/ansi-purge/

    Package Sidebar

    Install

    npm i ansi-purge

    Weekly Downloads

    24,221

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    2.61 kB

    Total Files

    7

    Last publish

    Collaborators

    • fabiospampinato