has-ansi
Check if a string has ANSI escape codes
Last updated 12 years ago by jbnicolai .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install has-ansi 
SYNC missed versions from official npm registry.

has-ansi

Check if a string has ANSI escape codes

Install

$ npm install has-ansi

Usage

import hasAnsi from '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.

Current Tags

  • 6.0.2                                ...           latest (a year ago)

13 Versions

  • 6.0.2                                ...           a year ago
  • 6.0.0                                ...           2 years ago
  • 5.0.1                                ...           5 years ago
  • 5.0.0                                ...           6 years ago
  • 4.0.1                                ...           6 years ago
  • 4.0.0                                ...           7 years ago
  • 3.0.0                                ...           9 years ago
  • 2.0.0                                ...           11 years ago
  • 1.0.3                                ...           12 years ago
  • 1.0.2                                ...           12 years ago
  • 1.0.1                                ...           12 years ago
  • 1.0.0                                ...           12 years ago
  • 0.1.0                                ...           12 years ago
Downloads
Total 12
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE