Eric Foster 35b96bc934 initial commit 6 år sedan
..
index.js initial commit 6 år sedan
license initial commit 6 år sedan
package.json initial commit 6 år sedan
readme.md initial commit 6 år sedan

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