Andrea Fazzi 929328de94 Replace domain name il y a 4 ans
..
index.js 994369ab61 First commit il y a 7 ans
license 994369ab61 First commit il y a 7 ans
package.json 929328de94 Replace domain name il y a 4 ans
readme.md 994369ab61 First commit il y a 7 ans

readme.md

has-ansi Build Status

Check if a string has ANSI escape codes

Install

$ npm install --save has-ansi

Usage

var hasAnsi = require('has-ansi');

hasAnsi('\u001b[4mcake\u001b[0m');
//=> true

hasAnsi('cake');
//=> false

Related

License

MIT © Sindre Sorhus