Sha256: 73f962bdac16986c8974519c025f0411a96e70db753c4ab97244f56c09bea904

Contents?: true

Size: 511 Bytes

Versions: 32

Compression:

Stored size: 511 Bytes

Contents

#!/usr/bin/env node
'use strict';
var pkg = require('./package.json');
var supportsColor = require('./');
var input = process.argv[2];

function help() {
	console.log([
		pkg.description,
		'',
		'Usage',
		'  $ supports-color',
		'',
		'Exits with code 0 if color is supported and 1 if not'
	].join('\n'));
}

if (!input || process.argv.indexOf('--help') !== -1) {
	help();
	return;
}

if (process.argv.indexOf('--version') !== -1) {
	console.log(pkg.version);
	return;
}

process.exit(supportsColor ? 0 : 1);

Version data entries

32 entries across 14 versions & 4 rubygems

Version Path
gulp_assets-1.0.0.pre.5 template/node_modules/gulp-rev-replace/node_modules/gulp-util/node_modules/chalk/node_modules/supports-color/cli.js
gulp_assets-1.0.0.pre.5 template/node_modules/gulp-livereload/node_modules/chalk/node_modules/supports-color/cli.js
gulp_assets-1.0.0.pre.4 template/node_modules/gulp-rev-replace/node_modules/gulp-util/node_modules/chalk/node_modules/supports-color/cli.js
gulp_assets-1.0.0.pre.4 template/node_modules/gulp-livereload/node_modules/chalk/node_modules/supports-color/cli.js
gulp_assets-1.0.0.pre.3 template/node_modules/gulp-livereload/node_modules/chalk/node_modules/supports-color/cli.js
gulp_assets-1.0.0.pre.3 template/node_modules/gulp-rev-replace/node_modules/gulp-util/node_modules/chalk/node_modules/supports-color/cli.js
entangled-0.0.16 spec/dummy/public/node_modules/bower/node_modules/insight/node_modules/chalk/node_modules/supports-color/cli.js
entangled-0.0.16 spec/dummy/public/node_modules/bower/node_modules/chalk/node_modules/supports-color/cli.js
entangled-0.0.15 spec/dummy/public/node_modules/bower/node_modules/insight/node_modules/chalk/node_modules/supports-color/cli.js
entangled-0.0.15 spec/dummy/public/node_modules/bower/node_modules/chalk/node_modules/supports-color/cli.js
entangled-0.0.14 spec/dummy/public/node_modules/bower/node_modules/insight/node_modules/chalk/node_modules/supports-color/cli.js
entangled-0.0.14 spec/dummy/public/node_modules/bower/node_modules/chalk/node_modules/supports-color/cli.js
entangled-0.0.13 spec/dummy/public/node_modules/bower/node_modules/insight/node_modules/chalk/node_modules/supports-color/cli.js
entangled-0.0.13 spec/dummy/public/node_modules/bower/node_modules/chalk/node_modules/supports-color/cli.js
entangled-0.0.12 spec/dummy/public/node_modules/bower/node_modules/chalk/node_modules/supports-color/cli.js
entangled-0.0.12 spec/dummy/public/node_modules/bower/node_modules/insight/node_modules/chalk/node_modules/supports-color/cli.js
entangled-0.0.11 spec/dummy/public/node_modules/bower/node_modules/insight/node_modules/chalk/node_modules/supports-color/cli.js
entangled-0.0.11 spec/dummy/public/node_modules/bower/node_modules/chalk/node_modules/supports-color/cli.js
entangled-0.0.10 spec/dummy/public/node_modules/bower/node_modules/insight/node_modules/chalk/node_modules/supports-color/cli.js
entangled-0.0.10 spec/dummy/public/node_modules/bower/node_modules/chalk/node_modules/supports-color/cli.js