aboutsummaryrefslogtreecommitdiff
path: root/node_modules/has-color
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-10-10 03:43:44 +0200
committerFlorian Dold <florian.dold@gmail.com>2016-10-10 03:43:44 +0200
commitabd94a7f5a50f43c797a11b53549ae48fff667c3 (patch)
treeab8ed457f65cdd72e13e0571d2975729428f1551 /node_modules/has-color
parenta0247c6a3fd6a09a41a7e35a3441324c4dcb58be (diff)
downloadwallet-core-abd94a7f5a50f43c797a11b53549ae48fff667c3.tar.xz
add node_modules to address #4364
Diffstat (limited to 'node_modules/has-color')
-rw-r--r--node_modules/has-color/index.js32
-rw-r--r--node_modules/has-color/package.json105
-rw-r--r--node_modules/has-color/readme.md30
3 files changed, 167 insertions, 0 deletions
diff --git a/node_modules/has-color/index.js b/node_modules/has-color/index.js
new file mode 100644
index 000000000..092d0baef
--- /dev/null
+++ b/node_modules/has-color/index.js
@@ -0,0 +1,32 @@
+'use strict';
+module.exports = (function () {
+ if (process.argv.indexOf('--no-color') !== -1) {
+ return false;
+ }
+
+ if (process.argv.indexOf('--color') !== -1) {
+ return true;
+ }
+
+ if (process.stdout && !process.stdout.isTTY) {
+ return false;
+ }
+
+ if (process.platform === 'win32') {
+ return true;
+ }
+
+ if ('COLORTERM' in process.env) {
+ return true;
+ }
+
+ if (process.env.TERM === 'dumb') {
+ return false;
+ }
+
+ if (/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)) {
+ return true;
+ }
+
+ return false;
+})();
diff --git a/node_modules/has-color/package.json b/node_modules/has-color/package.json
new file mode 100644
index 000000000..1aa42f33d
--- /dev/null
+++ b/node_modules/has-color/package.json
@@ -0,0 +1,105 @@
+{
+ "_args": [
+ [
+ {
+ "raw": "has-color@~0.1.0",
+ "scope": null,
+ "escapedName": "has-color",
+ "name": "has-color",
+ "rawSpec": "~0.1.0",
+ "spec": ">=0.1.0 <0.2.0",
+ "type": "range"
+ },
+ "/home/dold/repos/taler/wallet-webex/node_modules/nomnom/node_modules/chalk"
+ ]
+ ],
+ "_from": "has-color@>=0.1.0 <0.2.0",
+ "_id": "has-color@0.1.7",
+ "_inCache": true,
+ "_location": "/has-color",
+ "_npmUser": {
+ "name": "sindresorhus",
+ "email": "sindresorhus@gmail.com"
+ },
+ "_npmVersion": "1.4.6",
+ "_phantomChildren": {},
+ "_requested": {
+ "raw": "has-color@~0.1.0",
+ "scope": null,
+ "escapedName": "has-color",
+ "name": "has-color",
+ "rawSpec": "~0.1.0",
+ "spec": ">=0.1.0 <0.2.0",
+ "type": "range"
+ },
+ "_requiredBy": [
+ "/nomnom/chalk"
+ ],
+ "_resolved": "https://registry.npmjs.org/has-color/-/has-color-0.1.7.tgz",
+ "_shasum": "67144a5260c34fc3cca677d041daf52fe7b78b2f",
+ "_shrinkwrap": null,
+ "_spec": "has-color@~0.1.0",
+ "_where": "/home/dold/repos/taler/wallet-webex/node_modules/nomnom/node_modules/chalk",
+ "author": {
+ "name": "Sindre Sorhus",
+ "email": "sindresorhus@gmail.com",
+ "url": "http://sindresorhus.com"
+ },
+ "bugs": {
+ "url": "https://github.com/sindresorhus/has-color/issues"
+ },
+ "dependencies": {},
+ "description": "Detect whether a terminal supports color",
+ "devDependencies": {
+ "mocha": "*"
+ },
+ "directories": {},
+ "dist": {
+ "shasum": "67144a5260c34fc3cca677d041daf52fe7b78b2f",
+ "tarball": "https://registry.npmjs.org/has-color/-/has-color-0.1.7.tgz"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "files": [
+ "index.js"
+ ],
+ "homepage": "https://github.com/sindresorhus/has-color",
+ "keywords": [
+ "color",
+ "colour",
+ "colors",
+ "terminal",
+ "console",
+ "cli",
+ "ansi",
+ "styles",
+ "tty",
+ "rgb",
+ "256",
+ "shell",
+ "xterm",
+ "command-line",
+ "support",
+ "capability",
+ "detect"
+ ],
+ "license": "MIT",
+ "maintainers": [
+ {
+ "name": "sindresorhus",
+ "email": "sindresorhus@gmail.com"
+ }
+ ],
+ "name": "has-color",
+ "optionalDependencies": {},
+ "readme": "ERROR: No README data found!",
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/sindresorhus/has-color.git"
+ },
+ "scripts": {
+ "test": "mocha"
+ },
+ "version": "0.1.7"
+}
diff --git a/node_modules/has-color/readme.md b/node_modules/has-color/readme.md
new file mode 100644
index 000000000..37bbd8991
--- /dev/null
+++ b/node_modules/has-color/readme.md
@@ -0,0 +1,30 @@
+# 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)