is-ansi

1.0.0 • Public • Published

is-ansi npmjs.com The MIT License

Check that given string contain ANSI color codes, without CLI

code climate standard code style travis build status coverage status dependency status

Install

npm i is-ansi --save
npm test

Usage

For more use-cases see the tests

var isAnsi = require('is-ansi')
 
isAnsi('\u001b[4mCharlike\u001b[0m')
//=> true
 
isAnsi('Charlike')
//=> false

Related

  • has-ansi: Check if a string has ANSI escape codes
  • has-value: Returns true if a value exists, false if empty. Works… more
  • is-match: Create a matching function from a glob pattern, regex, string,… more
  • is-missing: Check that given name or user/repo exists in npm registry… more
  • is-installed: Checks that given package is installed on the system -… more
  • is-es6-generators: Check whether a value is a Generator or GeneratorFunction. The… more
  • micromatch: Glob matching for javascript/node.js. A drop-in replacement and faster… more
  • verb: Documentation generator for GitHub projects. Extremely powerful, easy to use,… more

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
But before doing anything, please read the CONTRIBUTING.md guidelines.

Charlike Make Reagent new message to charlike freenode #charlike

tunnckocore.tk keybase tunnckocore tunnckoCore npm tunnckoCore twitter tunnckoCore github

Package Sidebar

Install

npm i is-ansi

Weekly Downloads

4

Version

1.0.0

License

MIT

Last publish

Collaborators

  • vanchoy
  • tunnckocore