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

strip-ansi Build Status

Strip ANSI escape codes

Install

$ npm install strip-ansi

Usage

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

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

Related

  • strip-ansi-cli - CLI for this module
  • has-ansi - Check if a string has ANSI escape codes
  • ansi-regex - Regular expression for matching ANSI escape codes
  • chalk - Terminal string styling done right

Maintainers

License

MIT

Maintainers (2)
Downloads
Today 711
This Week 57,209
This Month 508,899
Last Day 28,842
Last Week 162,648
Last Month 620,105
Dependencies (1)
Dev Dependencies (2)
Dependents (1013)

Copyright 2014 - 2017 © taobao.org |