npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

has-ansi

3.0.0 • Public • Published

has-ansi Build Status

Check if a string has ANSI escape codes

Install

$ npm install has-ansi

Usage

const hasAnsi = require('has-ansi');
 
hasAnsi('\u001B[4mUnicorn\u001B[0m');
//=> true
 
hasAnsi('cake');
//=> false

Related

Maintainers

License

MIT

install

npm i has-ansi

Downloadsweekly downloads

8,662,407

version

3.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability