Home

Awesome

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

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