prc b6c02717e6 Upload complete no-internet building environment. | 1 rok pred | |
---|---|---|
.. | ||
node_modules | 1 rok pred | |
index.js | 1 rok pred | |
license | 1 rok pred | |
package.json | 1 rok pred | |
readme.md | 1 rok 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