summaryrefslogtreecommitdiff
path: root/tools/eslint/node_modules/chalk
diff options
context:
space:
mode:
authorRoman Reiss <me@silverwind.io>2015-06-28 17:36:14 +0200
committerRoman Reiss <me@silverwind.io>2015-06-29 19:02:17 +0200
commitd91e10b3bd4f3011befa91d68a4305a0f438c62e (patch)
tree29ab7939b4773710ea19336c81763baa545511c1 /tools/eslint/node_modules/chalk
parent1a51f0058c10abf0bcd8048f4ab6755b400b23c2 (diff)
downloadnode-new-d91e10b3bd4f3011befa91d68a4305a0f438c62e.tar.gz
tools: update eslint to 0.24.0
PR-URL: https://github.com/nodejs/io.js/pull/2072 Reviewed-By: Yosuke Furukawa <yosuke.furukawa@gmail.com> Reviewed-by: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Alex Kocharin <alex@kocharin.ru>
Diffstat (limited to 'tools/eslint/node_modules/chalk')
l---------[-rwxr-xr-x]tools/eslint/node_modules/chalk/node_modules/.bin/has-ansi46
l---------[-rwxr-xr-x]tools/eslint/node_modules/chalk/node_modules/.bin/strip-ansi48
l---------[-rwxr-xr-x]tools/eslint/node_modules/chalk/node_modules/.bin/supports-color30
-rw-r--r--tools/eslint/node_modules/chalk/node_modules/has-ansi/node_modules/ansi-regex/package.json2
-rw-r--r--tools/eslint/node_modules/chalk/node_modules/strip-ansi/node_modules/ansi-regex/package.json2
5 files changed, 5 insertions, 123 deletions
diff --git a/tools/eslint/node_modules/chalk/node_modules/.bin/has-ansi b/tools/eslint/node_modules/chalk/node_modules/.bin/has-ansi
index 0386a82423..c1e7413f1f 100755..120000
--- a/tools/eslint/node_modules/chalk/node_modules/.bin/has-ansi
+++ b/tools/eslint/node_modules/chalk/node_modules/.bin/has-ansi
@@ -1,45 +1 @@
-#!/usr/bin/env node
-'use strict';
-var stdin = require('get-stdin');
-var pkg = require('./package.json');
-var hasAnsi = require('./');
-var argv = process.argv.slice(2);
-var input = argv[0];
-
-function help() {
- console.log([
- '',
- ' ' + pkg.description,
- '',
- ' Usage',
- ' has-ansi <string>',
- ' echo <string> | has-ansi',
- '',
- ' Exits with code 0 if input has ANSI escape codes and 1 if not'
- ].join('\n'));
-}
-
-function init(data) {
- process.exit(hasAnsi(data) ? 0 : 1);
-}
-
-if (argv.indexOf('--help') !== -1) {
- help();
- return;
-}
-
-if (argv.indexOf('--version') !== -1) {
- console.log(pkg.version);
- return;
-}
-
-if (process.stdin.isTTY) {
- if (!input) {
- help();
- return;
- }
-
- init(input);
-} else {
- stdin(init);
-}
+../has-ansi/cli.js \ No newline at end of file
diff --git a/tools/eslint/node_modules/chalk/node_modules/.bin/strip-ansi b/tools/eslint/node_modules/chalk/node_modules/.bin/strip-ansi
index b83f63b907..b65c9f81df 100755..120000
--- a/tools/eslint/node_modules/chalk/node_modules/.bin/strip-ansi
+++ b/tools/eslint/node_modules/chalk/node_modules/.bin/strip-ansi
@@ -1,47 +1 @@
-#!/usr/bin/env node
-'use strict';
-var fs = require('fs');
-var pkg = require('./package.json');
-var stripAnsi = require('./');
-var argv = process.argv.slice(2);
-var input = argv[0];
-
-function help() {
- console.log([
- '',
- ' ' + pkg.description,
- '',
- ' Usage',
- ' strip-ansi <input-file> > <output-file>',
- ' cat <input-file> | strip-ansi > <output-file>',
- '',
- ' Example',
- ' strip-ansi unicorn.txt > unicorn-stripped.txt'
- ].join('\n'));
-}
-
-function init(data) {
- process.stdout.write(stripAnsi(data));
-}
-
-if (argv.indexOf('--help') !== -1) {
- help();
- return;
-}
-
-if (argv.indexOf('--version') !== -1) {
- console.log(pkg.version);
- return;
-}
-
-if (!input && process.stdin.isTTY) {
- help();
- return;
-}
-
-if (input) {
- init(fs.readFileSync(input, 'utf8'));
-} else {
- process.stdin.setEncoding('utf8');
- process.stdin.on('data', init);
-}
+../strip-ansi/cli.js \ No newline at end of file
diff --git a/tools/eslint/node_modules/chalk/node_modules/.bin/supports-color b/tools/eslint/node_modules/chalk/node_modules/.bin/supports-color
index e746987666..af0f05efe8 100755..120000
--- a/tools/eslint/node_modules/chalk/node_modules/.bin/supports-color
+++ b/tools/eslint/node_modules/chalk/node_modules/.bin/supports-color
@@ -1,29 +1 @@
-#!/usr/bin/env node
-'use strict';
-var pkg = require('./package.json');
-var supportsColor = require('./');
-var argv = process.argv.slice(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 (argv.indexOf('--help') !== -1) {
- help();
- return;
-}
-
-if (argv.indexOf('--version') !== -1) {
- console.log(pkg.version);
- return;
-}
-
-process.exit(supportsColor ? 0 : 1);
+../supports-color/cli.js \ No newline at end of file
diff --git a/tools/eslint/node_modules/chalk/node_modules/has-ansi/node_modules/ansi-regex/package.json b/tools/eslint/node_modules/chalk/node_modules/has-ansi/node_modules/ansi-regex/package.json
index 4b7be0c62c..3ce9ccdb87 100644
--- a/tools/eslint/node_modules/chalk/node_modules/has-ansi/node_modules/ansi-regex/package.json
+++ b/tools/eslint/node_modules/chalk/node_modules/has-ansi/node_modules/ansi-regex/package.json
@@ -69,7 +69,7 @@
"homepage": "https://github.com/sindresorhus/ansi-regex",
"_id": "ansi-regex@1.1.1",
"_shasum": "41c847194646375e6a1a5d10c3ca054ef9fc980d",
- "_from": "ansi-regex@>=1.0.0 <2.0.0",
+ "_from": "ansi-regex@>=1.1.1 <2.0.0",
"_npmVersion": "2.1.16",
"_nodeVersion": "0.10.35",
"_npmUser": {
diff --git a/tools/eslint/node_modules/chalk/node_modules/strip-ansi/node_modules/ansi-regex/package.json b/tools/eslint/node_modules/chalk/node_modules/strip-ansi/node_modules/ansi-regex/package.json
index 4b7be0c62c..3ce9ccdb87 100644
--- a/tools/eslint/node_modules/chalk/node_modules/strip-ansi/node_modules/ansi-regex/package.json
+++ b/tools/eslint/node_modules/chalk/node_modules/strip-ansi/node_modules/ansi-regex/package.json
@@ -69,7 +69,7 @@
"homepage": "https://github.com/sindresorhus/ansi-regex",
"_id": "ansi-regex@1.1.1",
"_shasum": "41c847194646375e6a1a5d10c3ca054ef9fc980d",
- "_from": "ansi-regex@>=1.0.0 <2.0.0",
+ "_from": "ansi-regex@>=1.1.1 <2.0.0",
"_npmVersion": "2.1.16",
"_nodeVersion": "0.10.35",
"_npmUser": {