qwqdanchun.github.io/node_modules/has-ansi
qwqdanchun 1b6a0fbb18 test 2022-11-11 19:16:46 +08:00
..
node_modules/ansi-regex test 2022-11-11 19:16:46 +08:00
index.js test 2022-11-11 19:16:46 +08:00
license test 2022-11-11 19:16:46 +08:00
package.json test 2022-11-11 19:16:46 +08:00
readme.md test 2022-11-11 19:16:46 +08:00

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

License

MIT © Sindre Sorhus