lhl 982c208bef 9-30 | 2 jaren geleden | |
---|---|---|
.. | ||
index.d.ts | 2 jaren geleden | |
index.js | 2 jaren geleden | |
license | 2 jaren geleden | |
package.json | 2 jaren geleden | |
readme.md | 2 jaren geleden |
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