ansi-purge
A tiny function for deleting ANSI escape sequences from a string.
Last updated a year ago by fabiospampinato .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install ansi-purge 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.1.0                                ...           latest (a year ago)

3 Versions

  • 1.1.0                                ...           a year ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Total 3
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 1
Last Month 1
Dependencies (0)
None
Dev Dependencies (5)
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE