work.suroh.tk/node_modules/has-color
suroh 410082595a init 11ty commit 2019-12-02 13:22:45 +01:00
..
index.js init 11ty commit 2019-12-02 13:22:45 +01:00
package.json init 11ty commit 2019-12-02 13:22:45 +01:00
readme.md init 11ty commit 2019-12-02 13:22:45 +01:00

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