NuclearDispersionSystem/ant-design-vue-jeecg/node_modules/has-ansi
2023-09-14 14:47:11 +08:00
..
index.js 111 2023-09-14 14:47:11 +08:00
license 111 2023-09-14 14:47:11 +08:00
package.json 111 2023-09-14 14:47:11 +08:00
readme.md 111 2023-09-14 14:47:11 +08: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