Erik Römmelt 9dab5e2dbc Update Node_modules | 5 years ago | |
---|---|---|
.. | ||
node_modules/ansi-regex | 5 years ago | |
index.d.ts | 5 years ago | |
index.js | 5 years ago | |
license | 6 years ago | |
package.json | 5 years ago | |
readme.md | 5 years ago |
Strip ANSI escape codes from a string
$ npm install strip-ansi
const stripAnsi = require('strip-ansi');
stripAnsi('\u001B[4mUnicorn\u001B[0m');
//=> 'Unicorn'
stripAnsi('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007');
//=> 'Click'
To report a security vulnerability, please use the Tidelift security contact. Tidelift will coordinate the fix and disclosure.
MIT