hz-zhhq-web/node_modules/has-color
zzyuan 03ac614884 前端提交3 2025-02-25 13:45:28 +08:00
..
index.js 前端提交3 2025-02-25 13:45:28 +08:00
package.json 前端提交3 2025-02-25 13:45:28 +08:00
readme.md 前端提交3 2025-02-25 13:45:28 +08: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