tree: c2c52048caab5ebd0c9630aa1b002bbb5484774f [path history] [tgz]
  1. index.js
  2. license
  3. package.json
  4. readme.md
PoCs/nodejs_poc/node_modules/has-ansi/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

Related

License

MIT © Sindre Sorhus