Files
old-saburly-blog/node_modules/has-color
2017-10-23 15:54:25 +02:00
..
2017-10-23 15:54:25 +02:00
2017-10-23 15:54:25 +02:00

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