Bachir Soussi Chiadmi cefd1c2ad0 updated sys and created publi | 6 years ago | |
---|---|---|
.. | ||
index.js | 7 years ago | |
license | 7 years ago | |
package.json | 6 years ago | |
readme.md | 7 years ago |
Check if a string has ANSI escape codes
$ npm install --save has-ansi
var hasAnsi = require('has-ansi');
hasAnsi('\u001b[4mcake\u001b[0m');
//=> true
hasAnsi('cake');
//=> false
MIT © Sindre Sorhus