ansi-purge
A tiny function for deleting ANSI escape sequences from a string.
Last updated 8 months ago by fabiospampinato .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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 (8 months ago)

3 Versions

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

Copyright 2013 - present © cnpmjs.org | Home |