lihai 8d6c751f49 feat: push 2 gadi atpakaļ
..
node_modules 8d6c751f49 feat: push 2 gadi atpakaļ
index.js 8d6c751f49 feat: push 2 gadi atpakaļ
license 8d6c751f49 feat: push 2 gadi atpakaļ
package.json 8d6c751f49 feat: push 2 gadi atpakaļ
readme.md 8d6c751f49 feat: push 2 gadi atpakaļ

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