Introducing npm Teams! Private packages + team management tools.Learn more »

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

10,402,767

Version

4.0.0

License

MIT

Unpacked Size

3.32 kB

Total Files

4

Last publish

Collaborators

  • avatar
  • avatar