Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
index.js | D | 12-May-2024 | 161 | 7 | 5 | |
license | D | 12-May-2024 | 1.1 KiB | 22 | 17 | |
package.json | D | 12-May-2024 | 2.3 KiB | 113 | 112 | |
readme.md | D | 12-May-2024 | 801 | 34 | 19 |
readme.md
1# strip-ansi [](https://travis-ci.org/chalk/strip-ansi) 2 3> Strip [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code) 4 5 6## Install 7 8``` 9$ npm install --save strip-ansi 10``` 11 12 13## Usage 14 15```js 16var stripAnsi = require('strip-ansi'); 17 18stripAnsi('\u001b[4mcake\u001b[0m'); 19//=> 'cake' 20``` 21 22 23## Related 24 25- [strip-ansi-cli](https://github.com/chalk/strip-ansi-cli) - CLI for this module 26- [has-ansi](https://github.com/chalk/has-ansi) - Check if a string has ANSI escape codes 27- [ansi-regex](https://github.com/chalk/ansi-regex) - Regular expression for matching ANSI escape codes 28- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right 29 30 31## License 32 33MIT © [Sindre Sorhus](http://sindresorhus.com) 34