Sha256: f15c694621d4d82c2c8f1e3ffb4c571b88438a175bc157f88c3b15c42cf3e3f4

Contents?: true

Size: 823 Bytes

Versions: 243

Compression:

Stored size: 823 Bytes

Contents

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

> Detect whether a terminal supports color


## Install

```
$ npm install --save supports-color
```


## Usage

```js
var supportsColor = require('supports-color');

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

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

For situations where using `--color` is not possible, add an environment variable `FORCE_COLOR` with any value to force color. Trumps `--no-color`.


## Related

- [supports-color-cli](https://github.com/chalk/supports-color-cli) - CLI for this module
- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right


## License

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

Version data entries

243 entries across 203 versions & 29 rubygems

Version Path
immosquare-cleaner-0.1.60 node_modules/babel-code-frame/node_modules/chalk/node_modules/supports-color/readme.md
immosquare-cleaner-0.1.59 node_modules/babel-code-frame/node_modules/chalk/node_modules/supports-color/readme.md
immosquare-cleaner-0.1.58 node_modules/babel-code-frame/node_modules/chalk/node_modules/supports-color/readme.md
immosquare-cleaner-0.1.57 node_modules/babel-code-frame/node_modules/chalk/node_modules/supports-color/readme.md
immosquare-cleaner-0.1.56 node_modules/babel-code-frame/node_modules/chalk/node_modules/supports-color/readme.md
immosquare-cleaner-0.1.55 node_modules/babel-code-frame/node_modules/chalk/node_modules/supports-color/readme.md
immosquare-cleaner-0.1.54 node_modules/babel-code-frame/node_modules/chalk/node_modules/supports-color/readme.md
immosquare-cleaner-0.1.53 node_modules/babel-code-frame/node_modules/chalk/node_modules/supports-color/readme.md
immosquare-cleaner-0.1.52 node_modules/babel-code-frame/node_modules/chalk/node_modules/supports-color/readme.md
immosquare-cleaner-0.1.51 node_modules/babel-code-frame/node_modules/chalk/node_modules/supports-color/readme.md
immosquare-cleaner-0.1.50 node_modules/babel-code-frame/node_modules/chalk/node_modules/supports-color/readme.md
immosquare-cleaner-0.1.49 node_modules/babel-code-frame/node_modules/chalk/node_modules/supports-color/readme.md
immosquare-cleaner-0.1.48 node_modules/babel-code-frame/node_modules/chalk/node_modules/supports-color/readme.md
immosquare-cleaner-0.1.47 node_modules/babel-code-frame/node_modules/chalk/node_modules/supports-color/readme.md
immosquare-cleaner-0.1.46 node_modules/babel-code-frame/node_modules/chalk/node_modules/supports-color/readme.md
immosquare-cleaner-0.1.45 node_modules/babel-code-frame/node_modules/chalk/node_modules/supports-color/readme.md
immosquare-cleaner-0.1.44 node_modules/babel-code-frame/node_modules/chalk/node_modules/supports-color/readme.md
immosquare-cleaner-0.1.43 node_modules/babel-code-frame/node_modules/chalk/node_modules/supports-color/readme.md
immosquare-cleaner-0.1.42 node_modules/babel-code-frame/node_modules/chalk/node_modules/supports-color/readme.md
immosquare-cleaner-0.1.41 node_modules/babel-code-frame/node_modules/chalk/node_modules/supports-color/readme.md