Sha256: 280c437f3fa49d1e5251b883b2c02549a8e9f99c77e4b187eaa24f1f70f96b45

Contents?: true

Size: 597 Bytes

Versions: 22

Compression:

Stored size: 597 Bytes

Contents

# has-color [![Build Status](https://travis-ci.org/sindresorhus/has-color.svg?branch=master)](https://travis-ci.org/sindresorhus/has-color)

> Detect whether a terminal supports color.

Used in the terminal color module [chalk](https://github.com/sindresorhus/chalk).


## Install

```bash
$ npm install --save has-color
```


## Usage

```js
var hasColor = require('has-color');

if (hasColor) {
	console.log('Terminal supports color.');
}
```

It obeys the `--color` and `--no-color` CLI flags.


## License

[MIT](http://opensource.org/licenses/MIT) © [Sindre Sorhus](http://sindresorhus.com)

Version data entries

22 entries across 11 versions & 5 rubygems

Version Path
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/has-color/readme.md
locomotivecms-3.4.0 app/javascript/node_modules/has-color/readme.md
dragonfly_puppeteer-0.1.0 node_modules/has-color/readme.md
node-compiler-0.9.1 vendor/node/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/has-color/readme.md
node-compiler-0.9.1 vendor/node/deps/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/node_modules/has-color/readme.md
node-compiler-0.9.1 vendor/node/deps/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/has-color/readme.md
node-compiler-0.9.0 vendor/node-v7.2.1/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/has-color/readme.md
node-compiler-0.9.0 vendor/node-v7.2.1/deps/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/node_modules/has-color/readme.md
node-compiler-0.9.0 vendor/node-v7.2.1/deps/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/has-color/readme.md
node-compiler-0.8.0 vendor/node-v7.2.0/deps/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/has-color/readme.md
node-compiler-0.8.0 vendor/node-v7.2.0/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/has-color/readme.md
node-compiler-0.8.0 vendor/node-v7.2.0/deps/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/node_modules/has-color/readme.md
xcodebuild-helper-1.2.5 externals/ios-sim-master/node_modules/has-color/readme.md
node-compiler-0.7.0 vendor/node-v7.1.0/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/has-color/readme.md
node-compiler-0.7.0 vendor/node-v6.9.1/deps/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/has-color/readme.md
node-compiler-0.7.0 vendor/node-v6.9.1/deps/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/node_modules/has-color/readme.md
node-compiler-0.7.0 vendor/node-v6.9.1/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/has-color/readme.md
node-compiler-0.7.0 vendor/node-v7.1.0/deps/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/has-color/readme.md
node-compiler-0.7.0 vendor/node-v7.1.0/deps/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/node_modules/has-color/readme.md
xcodebuild-helper-1.2.3 externals/ios-sim-master/node_modules/has-color/readme.md