Bones/node_modules/strip-ansi
SOUTHERNCO\x2mjbyrn 7efe7605b8 Template Upload
2017-05-17 13:45:25 -04:00
..
cli.js Template Upload 2017-05-17 13:45:25 -04:00
index.js Template Upload 2017-05-17 13:45:25 -04:00
package.json Template Upload 2017-05-17 13:45:25 -04:00
readme.md Template Upload 2017-05-17 13:45:25 -04:00

strip-ansi Build Status

Strip ANSI escape codes

Install

$ npm install --save strip-ansi

Usage

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

stripAnsi('\x1b[4mcake\x1b[0m');
//=> 'cake'

CLI

$ npm install --global strip-ansi
$ strip-ansi --help

Usage
  $ strip-ansi <input-file> > <output-file>
  $ cat <input-file> | strip-ansi > <output-file>

Example
  $ strip-ansi unicorn.txt > unicorn-stripped.txt

License

MIT © Sindre Sorhus