site_marriage/node_modules/has-ansi
2019-10-20 20:15:52 +02:00
..
index.js migration titane -> nickel 2019-10-20 20:15:52 +02:00
license migration titane -> nickel 2019-10-20 20:15:52 +02:00
package.json migration titane -> nickel 2019-10-20 20:15:52 +02:00
readme.md migration titane -> nickel 2019-10-20 20:15:52 +02:00

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