Andrea Fazzi 994369ab61 First commit %!s(int64=7) %!d(string=hai) anos
..
index.js 994369ab61 First commit %!s(int64=7) %!d(string=hai) anos
license 994369ab61 First commit %!s(int64=7) %!d(string=hai) anos
package.json 994369ab61 First commit %!s(int64=7) %!d(string=hai) anos
readme.md 994369ab61 First commit %!s(int64=7) %!d(string=hai) anos

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