Sha256: 280c437f3fa49d1e5251b883b2c02549a8e9f99c77e4b187eaa24f1f70f96b45
Contents?: true
Size: 597 Bytes
Versions: 22
Compression:
Stored size: 597 Bytes
Contents
# has-color [](https://travis-ci.org/sindresorhus/has-color) > Detect whether a terminal supports color. Used in the terminal color module [chalk](https://github.com/sindresorhus/chalk). ## Install ```bash $ npm install --save has-color ``` ## Usage ```js var hasColor = require('has-color'); if (hasColor) { console.log('Terminal supports color.'); } ``` It obeys the `--color` and `--no-color` CLI flags. ## License [MIT](http://opensource.org/licenses/MIT) © [Sindre Sorhus](http://sindresorhus.com)
Version data entries
22 entries across 11 versions & 5 rubygems