mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-10-26 12:29:06 +00:00
has-color 
Detect whether a terminal supports color.
Used in the terminal color module chalk.
Install
$ npm install --save has-color
Usage
var hasColor = require('has-color');
if (hasColor) {
console.log('Terminal supports color.');
}
It obeys the --color and --no-color CLI flags.