npm

npm’s 2019 JavaScript ecosystem survey analysis is now available!Get your copy here »

has-ansi

2.0.0 • Public • Published

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

install

npm i has-ansi

Downloadsweekly downloads

9,492,550

version

2.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
Report a vulnerability