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

Readme

Keywords

Package Sidebar

Install

npm i ansi-purge

Weekly Downloads

24,853

Version

1.0.1

License

MIT

Unpacked Size

2.61 kB

Total Files

7

Last publish

Collaborators

  • fabiospampinato