|
|
пре 10 година | |
|---|---|---|
| .. | ||
| index.js | пре 10 година | |
| package.json | пре 10 година | |
| readme.md | пре 10 година | |
Detect whether a terminal supports color.
Used in the terminal color module chalk.
$ npm install --save has-color
var hasColor = require('has-color');
if (hasColor) {
console.log('Terminal supports color.');
}
It obeys the --color and --no-color CLI flags.