Bachir Soussi Chiadmi cefd1c2ad0 updated sys and created publi | 7 rokov pred | |
---|---|---|
.. | ||
index.js | 7 rokov pred | |
license | 7 rokov pred | |
package.json | 7 rokov pred | |
readme.md | 7 rokov pred |
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