|
5 년 전 | |
---|---|---|
.. | ||
cli.js | 5 년 전 | |
index.js | 5 년 전 | |
package.json | 5 년 전 | |
readme.md | 5 년 전 |
Strip ANSI escape codes (used for colorizing strings in the terminal)
Used in the terminal color module chalk.
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
var stripAnsi = require('strip-ansi');
stripAnsi('\x1b[4mcake\x1b[0m');
//=> cake
MIT © Sindre Sorhus