0.2.0 • Published 8 years ago
has-color v0.2.0
has-color 
Detect whether a terminal supports color.
Used in the terminal color module chalk.
Install
$ npm install --save has-colorUsage
var hasColor = require('has-color');
if (hasColor) {
console.log('Terminal supports color.');
}It obeys the --color and --no-color CLI flags.