@electerm/strip-ansi
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

node-strip-ansi

Build Status

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

Readme

Keywords

Package Sidebar

Install

npm i @electerm/strip-ansi

Weekly Downloads

685

Version

1.0.0

License

MIT

Unpacked Size

11.2 kB

Total Files

8

Last publish

Collaborators

  • zxdong262