yrik 2fd3c19a01 提交 4 жил өмнө
..
node_modules 2fd3c19a01 提交 4 жил өмнө
index.js eec7f449c9 first commit 4 жил өмнө
license eec7f449c9 first commit 4 жил өмнө
package.json 2fd3c19a01 提交 4 жил өмнө
readme.md eec7f449c9 first commit 4 жил өмнө

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