@ctiterm/strip-ansi
v1.0.0
Published
A port for strip-ansi to work with nodejs env
Downloads
24
Readme
node-strip-ansi
A port for strip-ansi to work with nodejs env, so user can use require
to use it
Use
npm i @ctiterm/strip-ansi
const stripAnsi = require('strip-ansi').default;
stripAnsi('\u001B[4mUnicorn\u001B[0m');
//=> 'Unicorn'
stripAnsi('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007');
//=> 'Click'
License
MIT