Zhouyiping 5a7c95461a first commit 3 天之前
..
index.js 5a7c95461a first commit 3 天之前
package.json 5a7c95461a first commit 3 天之前
readme.md 5a7c95461a first commit 3 天之前

readme.md

has-color Build Status

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.

License

MIT © Sindre Sorhus