site_opytex/theme/node_modules/has-ansi
Bertrand Benjamin 5b475a2f38 Feat: import work and verify compilation 2020-06-24 08:26:04 +02:00
..
index.js Feat: import work and verify compilation 2020-06-24 08:26:04 +02:00
license Feat: import work and verify compilation 2020-06-24 08:26:04 +02:00
package.json Feat: import work and verify compilation 2020-06-24 08:26:04 +02:00
readme.md Feat: import work and verify compilation 2020-06-24 08:26:04 +02: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