lhl c42e9810fc end | 9 meses atrás | |
---|---|---|
.. | ||
index.d.ts | 9 meses atrás | |
index.js | 9 meses atrás | |
license | 9 meses atrás | |
package.json | 9 meses atrás | |
readme.md | 9 meses atrás |
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