Sha256: 8db043bde17156a09639945fa05ad8a209502c8e7eb808629b5460c9c5a88dcf
Contents?: true
Size: 682 Bytes
Versions: 30
Compression:
Stored size: 682 Bytes
Contents
# supports-color [](https://travis-ci.org/sindresorhus/supports-color) > Detect whether a terminal supports color ## Install ```sh $ npm install --save supports-color ``` ## Usage ```js var supportsColor = require('supports-color'); if (supportsColor) { console.log('Terminal supports color'); } ``` It obeys the `--color` and `--no-color` CLI flags. ## CLI ```sh $ npm install --global supports-color ``` ```sh $ supports-color --help Usage $ supports-color # Exits with code 0 if color is supported and 1 if not ``` ## License MIT © [Sindre Sorhus](http://sindresorhus.com)
Version data entries
30 entries across 14 versions & 4 rubygems