wallet-core/node_modules/nomnom/node_modules/strip-ansi
2016-11-03 01:33:53 +01:00
..
cli.js add node_modules to address #4364 2016-10-10 03:43:44 +02:00
index.js add node_modules to address #4364 2016-10-10 03:43:44 +02:00
package.json node_modules 2016-11-03 01:33:53 +01:00
readme.md add node_modules to address #4364 2016-10-10 03:43:44 +02:00

strip-ansi Build Status

Strip ANSI escape codes (used for colorizing strings in the terminal)

Used in the terminal color module chalk.

Install

Install locally with npm:

npm install --save strip-ansi

Or globally if you want to use it as a CLI app:

npm install --global strip-ansi

You can then use it in your Terminal like:

strip-ansi file-with-color-codes

Or pipe something to it:

ls | strip-ansi

Example

var stripAnsi = require('strip-ansi');
stripAnsi('\x1b[4mcake\x1b[0m');
//=> cake

License

MIT © Sindre Sorhus