1.0.0 • Published 3 years ago
@electerm/strip-ansi v1.0.0
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
1.0.0
3 years ago