Files
node_modules
.bin
accepts
after
array-flatten
arraybuffer.slice
async-limiter
backo2
base64-arraybuffer
base64id
better-assert
blob
callsite
commander
component-bind
component-emitter
component-inherit
content-disposition
content-type
cookie
cookie-signature
debug
depd
destroy
diff
ee-first
encodeurl
engine.io
engine.io-client
engine.io-parser
escape-html
escape-string-regexp
etag
express
finalhandler
forwarded
fresh
glob
growl
has-binary2
has-cors
http-errors
indexof
inherits
ipaddr.js
isarray
jade
lru-cache
media-typer
merge-descriptors
methods
mime
mime-db
mime-types
minimatch
minimist
mkdirp
mocha
ms
negotiator
net
object-component
on-finished
parseqs
parseuri
parseurl
path-to-regexp
proxy-addr
qs
quick-local-ip
range-parser
safe-buffer
send
serve-static
setprototypeof
sigmund
socket.io
socket.io-adapter
socket.io-client
socket.io-parser
statuses
supports-color
cli.js
index.js
package.json
readme.md
to-array
to-iso-string
type-is
ultron
unpipe
utils-merge
vary
ws
xmlhttprequest-ssl
yeast
public
README.md
index.js
package-lock.json
package.json
2018-04-04 12:31:55 +02:00
..
2018-04-04 12:31:55 +02:00
2018-04-04 12:31:55 +02:00
2018-04-04 12:31:55 +02:00
2018-04-04 12:31:55 +02:00

supports-color Build Status

Detect whether a terminal supports color

Install

$ npm install --save supports-color

Usage

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

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

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

CLI

$ npm install --global supports-color
$ supports-color --help

  Usage
    supports-color

  Exits with code 0 if color is supported and 1 if not

License

MIT © Sindre Sorhus