node-query/node_modules/grunt-istanbul/node_modules/chalk/node_modules/supports-color
Timothy Warren ba6b3c311d Update included modules 2015-01-28 15:33:44 -05:00
..
cli.js Update included modules 2015-01-28 15:33:44 -05:00
index.js Update included modules 2015-01-28 15:33:44 -05:00
package.json Update included modules 2015-01-28 15:33:44 -05:00
readme.md Update included modules 2015-01-28 15:33:44 -05:00

readme.md

supports-color Build Status

Detect whether a terminal supports color

Install

$ npm install --save supports-color

Usage

var supportsColor = require('supports-color');

if (supportsColor) {
	console.log('Terminal supports color');
}

It obeys the --color and --no-color CLI flags.

CLI

$ npm install --global supports-color
$ supports-color --help

Usage
  $ supports-color

# Exits with code 0 if color is supported and 1 if not

License

MIT © Sindre Sorhus