strip-ansi
Strip ANSI escape codes
Last updated a year ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball
$ cnpm install strip-ansi 
SYNC missed versions from official npm registry.

strip-ansi Build Status

Strip ANSI escape codes

Install

$ npm install strip-ansi

Usage

const stripAnsi = require('strip-ansi');

stripAnsi('\u001B[4mUnicorn\u001B[0m');
//=> 'Unicorn'

Related

  • strip-ansi-cli - CLI for this module
  • has-ansi - Check if a string has ANSI escape codes
  • ansi-regex - Regular expression for matching ANSI escape codes
  • chalk - Terminal string styling done right

Maintainers

License

MIT

Maintainers (2)
Downloads
Today 30,842
This Week 65,605
This Month 461,798
Last Day 34,763
Last Week 192,622
Last Month 762,029
Dependencies (1)
Dev Dependencies (2)
Dependents (1286)

Copyright 2014 - 2016 © taobao.org |