strip-ansi
Strip ANSI escape codes from a string
Last updated 4 months ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install strip-ansi 
SYNC missed versions from official npm registry.

strip-ansi Build Status

Strip ANSI escape codes from a string


Get professional support for 'strip-ansi' with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

Install

$ npm install strip-ansi

Usage

const stripAnsi = require('strip-ansi');

stripAnsi('\u001B[4mUnicorn\u001B[0m');
//=> 'Unicorn'

stripAnsi('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007');
//=> 'Click'

Security

To report a security vulnerability, please use the Tidelift security contact. Tidelift will coordinate the fix and disclosure.

Related

Maintainers

License

MIT

Current Tags

  • 5.2.0                                ...           latest (4 months ago)

15 Versions

  • 5.2.0                                ...           4 months ago
  • 5.1.0                                ...           4 months ago
  • 5.0.0                                ...           10 months ago
  • 4.0.0                                ...           2 years ago
  • 3.0.1                                ...           3 years ago
  • 3.0.0                                ...           4 years ago
  • 2.0.1                                ...           5 years ago
  • 2.0.0                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
  • 0.3.0                                ...           5 years ago
  • 0.2.2                                ...           5 years ago
  • 0.2.1                                ...           5 years ago
  • 0.2.0                                ...           5 years ago
  • 0.1.1                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
Maintainers (2)
Downloads
Today 23,550
This Week 323,631
This Month 1,222,915
Last Day 74,267
Last Week 450,417
Last Month 1,558,475
Dependencies (1)
Dev Dependencies (3)
Dependents (1783)

Copyright 2014 - 2016 © taobao.org |