ez-indexation / app / node_modules / has-ansi /
@kieffer kieffer authored on 7 Mar 2017
..
index.js v0.0.0 7 years ago
license v0.0.0 7 years ago
package.json v0.0.0 7 years ago
readme.md v0.0.0 7 years ago
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