sunyanqiang fcedc92fa0 完成了基础 3 years ago
..
node_modules fcedc92fa0 完成了基础 3 years ago
index.js fcedc92fa0 完成了基础 3 years ago
license fcedc92fa0 完成了基础 3 years ago
package.json fcedc92fa0 完成了基础 3 years ago
readme.md fcedc92fa0 完成了基础 3 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

Related

License

MIT © Sindre Sorhus