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