hensei-web/node_modules/has-ansi
2020-09-11 06:44:42 -07:00
..
node_modules/ansi-regex First commit 2020-09-11 06:44:42 -07:00
index.js First commit 2020-09-11 06:44:42 -07:00
license First commit 2020-09-11 06:44:42 -07:00
package.json First commit 2020-09-11 06:44:42 -07:00
readme.md First commit 2020-09-11 06:44:42 -07:00

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

License

MIT © Sindre Sorhus