strip-ansi
Strip ANSI escape codes
Last updated 10 months 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 866
This Week 866
This Month 602,001
Last Day 12,261
Last Week 194,932
Last Month 858,470
Dependencies (1)
Dev Dependencies (2)
Dependents (1158)

Copyright 2014 - 2016 © taobao.org |