GT2/GT2-iOS/node_modules/has-ansi
Ren Ren Juan 30eef7d036 correct tree err 2018-02-12 17:26:06 +00:00
..
node_modules/ansi-regex correct tree err 2018-02-12 17:26:06 +00:00
index.js correct tree err 2018-02-12 17:26:06 +00:00
license correct tree err 2018-02-12 17:26:06 +00:00
package.json correct tree err 2018-02-12 17:26:06 +00:00
readme.md correct tree err 2018-02-12 17:26:06 +00: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