Nuptial Predicament Mediation

has-ansi-cli

3.0.0 • Public • Published

has-ansi-cli Build Status

Check if a string has ANSI escape codes

Install

$ npm install --global has-ansi-cli

Usage

$ has-ansi --help

  Usage
    $ has-ansi <text>
    $ echo <text> | has-ansi

  Example
    $ ls --color | has-ansi && echo 'has ansi'

  Exits with code 0 if input has ANSI escape codes and 1 if not

Related

Maintainers

License

MIT

install

npm i has-ansi-cli

Downloadsweekly downloads

3

version

3.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability