shichen b6c5ecc67a init 10 months ago
..
index.js b6c5ecc67a init 10 months ago
license b6c5ecc67a init 10 months ago
package.json b6c5ecc67a init 10 months ago
readme.md b6c5ecc67a init 10 months ago

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