has-ansi-cli

4.1.1 • Public • Published

has-ansi-cli

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
4.1.10latest

Version History

VersionDownloads (Last 7 Days)Published
4.1.10
4.1.01
4.0.00
3.0.00
2.0.00
1.0.00

Package Sidebar

Install

npm i has-ansi-cli

Weekly Downloads

1

Version

4.1.1

License

MIT

Unpacked Size

3.32 kB

Total Files

4

Last publish

Collaborators

  • sindresorhus
  • qix