npm

Need private packages and team management tools?Check out npm Orgs. »

has-ansi

4.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


Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

install

npm i has-ansi

Downloadsweekly downloads

9,691,856

version

4.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability