huituanxueqian 7740728225 commit hai 1 ano
..
index.js 7740728225 commit hai 1 ano
license 7740728225 commit hai 1 ano
package.json 7740728225 commit hai 1 ano
readme.md 7740728225 commit hai 1 ano

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