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

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

Current Tags

  • 3.0.0                                ...           latest (3 years ago)

3 Versions

  • 3.0.0                                ...           3 years ago
  • 2.0.0                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 3
Dependencies (3)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |