Initial commit
[yaffs-website] / node_modules / strip-ansi / readme.md
1 # strip-ansi [![Build Status](https://travis-ci.org/chalk/strip-ansi.svg?branch=master)](https://travis-ci.org/chalk/strip-ansi)
2
3 > Strip [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code)
4
5
6 ## Install
7
8 ```
9 $ npm install --save strip-ansi
10 ```
11
12
13 ## Usage
14
15 ```js
16 var stripAnsi = require('strip-ansi');
17
18 stripAnsi('\u001b[4mcake\u001b[0m');
19 //=> 'cake'
20 ```
21
22
23 ## Related
24
25 - [strip-ansi-cli](https://github.com/chalk/strip-ansi-cli) - CLI for this module
26 - [has-ansi](https://github.com/chalk/has-ansi) - Check if a string has ANSI escape codes
27 - [ansi-regex](https://github.com/chalk/ansi-regex) - Regular expression for matching ANSI escape codes
28 - [chalk](https://github.com/chalk/chalk) - Terminal string styling done right
29
30
31 ## License
32
33 MIT © [Sindre Sorhus](http://sindresorhus.com)