You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Kat Marchán 24f43903b4 deps: upgrade npm to 5.3.0 8 years ago
..
node_modules/ansi-regex deps: upgrade npm to 5.3.0 8 years ago
index.js deps: upgrade npm to 5.3.0 8 years ago
license deps: upgrade npm to 5.3.0 8 years ago
package.json deps: upgrade npm to 5.3.0 8 years ago
readme.md deps: upgrade npm to 5.3.0 8 years ago

readme.md

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'
  • 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