strip-ansi / 3.0.1 last updated 4 months ago created on Dec 7th 2013

Install

npm install --save strip-ansi

Clone

git clone git@github.com:chalk/strip-ansi.git

dependencies

main ansi-regex 2.0.0 MIT

maintainers

qix qix
sindresorhus sindresorhus

versions 11 total

3.0.1 5 months ago jbnicolai
3.0.0 a year ago sindresorhus
2.0.1 2 years ago sindresorhus
2.0.0 2 years ago sindresorhus
1.0.0 2 years ago sindresorhus
0.3.0 2 years ago sindresorhus
0.2.2 2 years ago sindresorhus
0.2.1 2 years ago sindresorhus
0.2.0 2 years ago sindresorhus
0.1.1 3 years ago sindresorhus
0.1.0 3 years ago sindresorhus
233743 Downloads yesterday.

readme

strip-ansi Build Status

Strip ANSI escape codes

Install

$ npm install --save strip-ansi

Usage

1
2
3
4
var stripAnsi = require('strip-ansi');

stripAnsi('\u001b[4mcake\u001b[0m');
//=> 'cake'

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

License

MIT © Sindre Sorhus

Resolving all dependencies.. This could take a while as our cache is not yet fully warmed up.