@electerm/strip-ansi
v1.0.0
Published
A port for strip-ansi to work with nodejs env
Downloads
3,141
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 @electerm/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