Neoclassical Programming Multitude

npm

Bring the best of OSS JavaScript development to your projects with npm Orgs - private packages & team management tools.Learn more »

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

8,596,813

version

2.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability