[Pkg-javascript-commits] [node-chalk] 09/10: bundle module dependencies as patches
Andrew Kelley
andrewrk-guest at moszumanska.debian.org
Sat Jul 5 20:49:31 UTC 2014
This is an automated email from the git hooks/post-receive script.
andrewrk-guest pushed a commit to branch master
in repository node-chalk.
commit d2371183d32d1be5b13fee18bda70e170bcf1781
Author: Andrew Kelley <superjoe30 at gmail.com>
Date: Sat Jul 5 20:23:53 2014 +0000
bundle module dependencies as patches
---
debian/patches/ansi-styles-module.patch | 181 +++++++++++++++++
debian/patches/escape-string-regexp-module.patch | 96 +++++++++
debian/patches/has-ansi-module.patch | 238 +++++++++++++++++++++++
debian/patches/series | 5 +
debian/patches/strip-ansi-module.patch | 237 ++++++++++++++++++++++
debian/patches/supports-color-module.patch | 151 ++++++++++++++
6 files changed, 908 insertions(+)
diff --git a/debian/patches/ansi-styles-module.patch b/debian/patches/ansi-styles-module.patch
new file mode 100644
index 0000000..1217f87
--- /dev/null
+++ b/debian/patches/ansi-styles-module.patch
@@ -0,0 +1,181 @@
+Description: Bundle ansi-styles module
+ This module is trivial and only chalk depends on it.
+Author: Andrew Kelley <superjoe30 at gmail.com>
+Forwarded: not-needed
+Last-Update: 2014-07-05
+
+--- /dev/null
++++ node-chalk-0.5.0/node_modules/ansi-styles/index.js
+@@ -0,0 +1,40 @@
++'use strict';
++var styles = module.exports;
++
++var codes = {
++ reset: [0, 0],
++
++ bold: [1, 22], // 21 isn't widely supported and 22 does the same thing
++ dim: [2, 22],
++ italic: [3, 23],
++ underline: [4, 24],
++ inverse: [7, 27],
++ hidden: [8, 28],
++ strikethrough: [9, 29],
++
++ black: [30, 39],
++ red: [31, 39],
++ green: [32, 39],
++ yellow: [33, 39],
++ blue: [34, 39],
++ magenta: [35, 39],
++ cyan: [36, 39],
++ white: [37, 39],
++ gray: [90, 39],
++
++ bgBlack: [40, 49],
++ bgRed: [41, 49],
++ bgGreen: [42, 49],
++ bgYellow: [43, 49],
++ bgBlue: [44, 49],
++ bgMagenta: [45, 49],
++ bgCyan: [46, 49],
++ bgWhite: [47, 49]
++};
++
++Object.keys(codes).forEach(function (key) {
++ var val = codes[key];
++ var style = styles[key] = {};
++ style.open = '\u001b[' + val[0] + 'm';
++ style.close = '\u001b[' + val[1] + 'm';
++});
+--- /dev/null
++++ node-chalk-0.5.0/node_modules/ansi-styles/package.json
+@@ -0,0 +1,56 @@
++{
++ "name": "ansi-styles",
++ "version": "1.1.0",
++ "description": "ANSI escape codes for styling strings in the terminal",
++ "license": "MIT",
++ "repository": {
++ "type": "git",
++ "url": "git://github.com/sindresorhus/ansi-styles"
++ },
++ "author": {
++ "name": "Sindre Sorhus",
++ "email": "sindresorhus at gmail.com",
++ "url": "http://sindresorhus.com"
++ },
++ "engines": {
++ "node": ">=0.10.0"
++ },
++ "scripts": {
++ "test": "mocha"
++ },
++ "files": [
++ "index.js"
++ ],
++ "keywords": [
++ "ansi",
++ "styles",
++ "color",
++ "colour",
++ "colors",
++ "terminal",
++ "console",
++ "cli",
++ "string",
++ "tty",
++ "escape",
++ "formatting",
++ "rgb",
++ "256",
++ "shell",
++ "xterm",
++ "log",
++ "logging",
++ "command-line",
++ "text"
++ ],
++ "devDependencies": {
++ "mocha": "*"
++ },
++ "readme": "# ansi-styles [![Build Status](https://travis-ci.org/sindresorhus/ansi-styles.svg?branch=master)](https://travis-ci.org/sindresorhus/ansi-styles)\n\n> [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for styling strings in the terminal\n\nYou probably want the higher-level [chalk](https://github.com/sindresorhus/chalk) module for styling your strings.\n\n![screenshot](screenshot.png)\n\n\n## Install\n\n```sh\n$ npm install --save ansi-sty [...]
++ "readmeFilename": "readme.md",
++ "bugs": {
++ "url": "https://github.com/sindresorhus/ansi-styles/issues"
++ },
++ "_id": "ansi-styles at 1.1.0",
++ "_from": "ansi-styles@^1.1.0"
++}
+--- /dev/null
++++ node-chalk-0.5.0/node_modules/ansi-styles/readme.md
+@@ -0,0 +1,70 @@
++# ansi-styles [![Build Status](https://travis-ci.org/sindresorhus/ansi-styles.svg?branch=master)](https://travis-ci.org/sindresorhus/ansi-styles)
++
++> [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for styling strings in the terminal
++
++You probably want the higher-level [chalk](https://github.com/sindresorhus/chalk) module for styling your strings.
++
++![screenshot](screenshot.png)
++
++
++## Install
++
++```sh
++$ npm install --save ansi-styles
++```
++
++
++## Usage
++
++```js
++var ansi = require('ansi-styles');
++
++console.log(ansi.green.open + 'Hello world!' + ansi.green.close);
++```
++
++
++## API
++
++Each style has an `open` and `close` property.
++
++
++## Styles
++
++### General
++
++- `reset`
++- `bold`
++- `dim`
++- `italic` *(not widely supported)*
++- `underline`
++- `inverse`
++- `hidden`
++- `strikethrough` *(not widely supported)*
++
++### Text colors
++
++- `black`
++- `red`
++- `green`
++- `yellow`
++- `blue`
++- `magenta`
++- `cyan`
++- `white`
++- `gray`
++
++### Background colors
++
++- `bgBlack`
++- `bgRed`
++- `bgGreen`
++- `bgYellow`
++- `bgBlue`
++- `bgMagenta`
++- `bgCyan`
++- `bgWhite`
++
++
++## License
++
++MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/debian/patches/escape-string-regexp-module.patch b/debian/patches/escape-string-regexp-module.patch
new file mode 100644
index 0000000..63278a6
--- /dev/null
+++ b/debian/patches/escape-string-regexp-module.patch
@@ -0,0 +1,96 @@
+Description: Bundle escape-string-regexp module
+ This module is trivial and only chalk depends on it.
+Author: Andrew Kelley <superjoe30 at gmail.com>
+Forwarded: not-needed
+Last-Update: 2014-07-05
+
+--- /dev/null
++++ node-chalk-0.5.0/node_modules/escape-string-regexp/index.js
+@@ -0,0 +1,8 @@
++'use strict';
++module.exports = function (str) {
++ if (typeof str !== 'string') {
++ throw new TypeError('Expected a string');
++ }
++
++ return str.replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
++};
+--- /dev/null
++++ node-chalk-0.5.0/node_modules/escape-string-regexp/package.json
+@@ -0,0 +1,46 @@
++{
++ "name": "escape-string-regexp",
++ "version": "1.0.0",
++ "description": "Escape RegExp special characters",
++ "license": "MIT",
++ "repository": {
++ "type": "git",
++ "url": "git://github.com/sindresorhus/escape-string-regexp"
++ },
++ "author": {
++ "name": "Sindre Sorhus",
++ "email": "sindresorhus at gmail.com",
++ "url": "http://sindresorhus.com"
++ },
++ "engines": {
++ "node": ">=0.10.0"
++ },
++ "scripts": {
++ "test": "mocha"
++ },
++ "files": [
++ "index.js"
++ ],
++ "keywords": [
++ "regex",
++ "regexp",
++ "re",
++ "regular",
++ "expression",
++ "escape",
++ "string",
++ "str",
++ "special",
++ "characters"
++ ],
++ "devDependencies": {
++ "mocha": "*"
++ },
++ "readme": "# escape-string-regexp [![Build Status](https://travis-ci.org/sindresorhus/escape-string-regexp.svg?branch=master)](https://travis-ci.org/sindresorhus/escape-string-regexp)\n\n> Escape RegExp special characters\n\n\n## Install\n\n```sh\n$ npm install --save escape-string-regexp\n```\n\n\n## Usage\n\n```js\nvar escapeStringRegexp = require('escape-string-regexp');\n\nvar escapedString = escapeStringRegexp('how much $ for a unicorn?');\n//=> how much \\$ for a unicorn\\?\n\nn [...]
++ "readmeFilename": "readme.md",
++ "bugs": {
++ "url": "https://github.com/sindresorhus/escape-string-regexp/issues"
++ },
++ "_id": "escape-string-regexp at 1.0.0",
++ "_from": "escape-string-regexp@^1.0.0"
++}
+--- /dev/null
++++ node-chalk-0.5.0/node_modules/escape-string-regexp/readme.md
+@@ -0,0 +1,27 @@
++# escape-string-regexp [![Build Status](https://travis-ci.org/sindresorhus/escape-string-regexp.svg?branch=master)](https://travis-ci.org/sindresorhus/escape-string-regexp)
++
++> Escape RegExp special characters
++
++
++## Install
++
++```sh
++$ npm install --save escape-string-regexp
++```
++
++
++## Usage
++
++```js
++var escapeStringRegexp = require('escape-string-regexp');
++
++var escapedString = escapeStringRegexp('how much $ for a unicorn?');
++//=> how much \$ for a unicorn\?
++
++new RegExp(escapedString);
++```
++
++
++## License
++
++MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/debian/patches/has-ansi-module.patch b/debian/patches/has-ansi-module.patch
new file mode 100644
index 0000000..9015871
--- /dev/null
+++ b/debian/patches/has-ansi-module.patch
@@ -0,0 +1,238 @@
+Description: Bundle has-ansi module
+ This module is trivial and only chalk depends on it.
+Author: Andrew Kelley <superjoe30 at gmail.com>
+Forwarded: not-needed
+Last-Update: 2014-07-05
+
+--- /dev/null
++++ node-chalk-0.5.0/node_modules/has-ansi/index.js
+@@ -0,0 +1,4 @@
++'use strict';
++var ansiRegex = require('ansi-regex');
++var re = new RegExp(ansiRegex().source); // remove the `g` flag
++module.exports = re.test.bind(re);
+--- /dev/null
++++ node-chalk-0.5.0/node_modules/has-ansi/node_modules/ansi-regex/index.js
+@@ -0,0 +1,4 @@
++'use strict';
++module.exports = function () {
++ return /\u001b\[(?:[0-9]{1,3}(?:;[0-9]{1,3})*)?[m|K]/g;
++};
+--- /dev/null
++++ node-chalk-0.5.0/node_modules/has-ansi/node_modules/ansi-regex/package.json
+@@ -0,0 +1,61 @@
++{
++ "name": "ansi-regex",
++ "version": "0.2.1",
++ "description": "Regular expression for matching ANSI escape codes",
++ "license": "MIT",
++ "repository": {
++ "type": "git",
++ "url": "git://github.com/sindresorhus/ansi-regex"
++ },
++ "author": {
++ "name": "Sindre Sorhus",
++ "email": "sindresorhus at gmail.com",
++ "url": "http://sindresorhus.com"
++ },
++ "engines": {
++ "node": ">=0.10.0"
++ },
++ "scripts": {
++ "test": "mocha"
++ },
++ "files": [
++ "index.js"
++ ],
++ "keywords": [
++ "ansi",
++ "styles",
++ "color",
++ "colour",
++ "colors",
++ "terminal",
++ "console",
++ "cli",
++ "string",
++ "tty",
++ "escape",
++ "formatting",
++ "rgb",
++ "256",
++ "shell",
++ "xterm",
++ "command-line",
++ "text",
++ "regex",
++ "regexp",
++ "re",
++ "match",
++ "test",
++ "find",
++ "pattern"
++ ],
++ "devDependencies": {
++ "mocha": "*"
++ },
++ "readme": "# ansi-regex [![Build Status](https://travis-ci.org/sindresorhus/ansi-regex.svg?branch=master)](https://travis-ci.org/sindresorhus/ansi-regex)\n\n> Regular expression for matching [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code)\n\n\n## Install\n\n```sh\n$ npm install --save ansi-regex\n```\n\n\n## Usage\n\n```js\nvar ansiRegex = require('ansi-regex');\n\nansiRegex().test('\\u001b[4mcake\\u001b[0m');\n//=> true\n\nansiRegex().test('cake');\n//=> false\n\n' [...]
++ "readmeFilename": "readme.md",
++ "bugs": {
++ "url": "https://github.com/sindresorhus/ansi-regex/issues"
++ },
++ "_id": "ansi-regex at 0.2.1",
++ "_from": "ansi-regex@^0.2.0"
++}
+--- /dev/null
++++ node-chalk-0.5.0/node_modules/has-ansi/node_modules/ansi-regex/readme.md
+@@ -0,0 +1,33 @@
++# ansi-regex [![Build Status](https://travis-ci.org/sindresorhus/ansi-regex.svg?branch=master)](https://travis-ci.org/sindresorhus/ansi-regex)
++
++> Regular expression for matching [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code)
++
++
++## Install
++
++```sh
++$ npm install --save ansi-regex
++```
++
++
++## Usage
++
++```js
++var ansiRegex = require('ansi-regex');
++
++ansiRegex().test('\u001b[4mcake\u001b[0m');
++//=> true
++
++ansiRegex().test('cake');
++//=> false
++
++'\u001b[4mcake\u001b[0m'.match(ansiRegex());
++//=> ['\u001b[4m', '\u001b[0m']
++```
++
++*It's a function so you can create multiple instances. Regexes with the global flag will have the `.lastIndex` property changed for each call to methods on the instance. Therefore reusing the instance with multiple calls will not work as expected for `.test()`.*
++
++
++## License
++
++MIT © [Sindre Sorhus](http://sindresorhus.com)
+--- /dev/null
++++ node-chalk-0.5.0/node_modules/has-ansi/package.json
+@@ -0,0 +1,67 @@
++{
++ "name": "has-ansi",
++ "version": "0.1.0",
++ "description": "Check if a string has ANSI escape codes",
++ "license": "MIT",
++ "repository": {
++ "type": "git",
++ "url": "git://github.com/sindresorhus/has-ansi"
++ },
++ "bin": {
++ "has-ansi": "cli.js"
++ },
++ "author": {
++ "name": "Sindre Sorhus",
++ "email": "sindresorhus at gmail.com",
++ "url": "http://sindresorhus.com"
++ },
++ "engines": {
++ "node": ">=0.10.0"
++ },
++ "scripts": {
++ "test": "mocha"
++ },
++ "files": [
++ "index.js",
++ "cli.js"
++ ],
++ "keywords": [
++ "cli",
++ "bin",
++ "ansi",
++ "styles",
++ "color",
++ "colour",
++ "colors",
++ "terminal",
++ "console",
++ "string",
++ "tty",
++ "escape",
++ "shell",
++ "xterm",
++ "command-line",
++ "text",
++ "regex",
++ "regexp",
++ "re",
++ "match",
++ "test",
++ "find",
++ "pattern",
++ "has"
++ ],
++ "dependencies": {
++ "ansi-regex": "^0.2.0"
++ },
++ "devDependencies": {
++ "mocha": "*"
++ },
++ "readme": "# has-ansi [![Build Status](https://travis-ci.org/sindresorhus/has-ansi.svg?branch=master)](https://travis-ci.org/sindresorhus/has-ansi)\n\n> Check if a string has [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code)\n\n\n## Install\n\n```sh\n$ npm install --save has-ansi\n```\n\n\n## Usage\n\n```js\nvar hasAnsi = require('has-ansi');\n\nhasAnsi('\\u001b[4mcake\\u001b[0m');\n//=> true\n\nhasAnsi('cake');\n//=> false\n```\n\n\n## CLI\n\n```sh\n$ npm install --g [...]
++ "readmeFilename": "readme.md",
++ "bugs": {
++ "url": "https://github.com/sindresorhus/has-ansi/issues"
++ },
++ "_id": "has-ansi at 0.1.0",
++ "_from": "has-ansi@^0.1.0"
++}
+--- /dev/null
++++ node-chalk-0.5.0/node_modules/has-ansi/readme.md
+@@ -0,0 +1,45 @@
++# has-ansi [![Build Status](https://travis-ci.org/sindresorhus/has-ansi.svg?branch=master)](https://travis-ci.org/sindresorhus/has-ansi)
++
++> Check if a string has [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code)
++
++
++## Install
++
++```sh
++$ npm install --save has-ansi
++```
++
++
++## Usage
++
++```js
++var hasAnsi = require('has-ansi');
++
++hasAnsi('\u001b[4mcake\u001b[0m');
++//=> true
++
++hasAnsi('cake');
++//=> false
++```
++
++
++## CLI
++
++```sh
++$ npm install --global has-ansi
++```
++
++```
++$ has-ansi --help
++
++Usage
++ $ has-ansi <string>
++ $ echo <string> | has-ansi
++
++Exits with code 0 if input has ANSI escape codes and 1 if not
++```
++
++
++## License
++
++MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/debian/patches/series b/debian/patches/series
index d796538..53b24dc 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,6 @@
override-detection.patch
+ansi-styles-module.patch
+strip-ansi-module.patch
+escape-string-regexp-module.patch
+has-ansi-module.patch
+supports-color-module.patch
diff --git a/debian/patches/strip-ansi-module.patch b/debian/patches/strip-ansi-module.patch
new file mode 100644
index 0000000..0c2ef5a
--- /dev/null
+++ b/debian/patches/strip-ansi-module.patch
@@ -0,0 +1,237 @@
+Description: Bundle strip-ansi module
+ This module is trivial and only chalk depends on it.
+Author: Andrew Kelley <superjoe30 at gmail.com>
+Forwarded: not-needed
+Last-Update: 2014-07-05
+
+--- /dev/null
++++ node-chalk-0.5.0/node_modules/strip-ansi/index.js
+@@ -0,0 +1,6 @@
++'use strict';
++var ansiRegex = require('ansi-regex')();
++
++module.exports = function (str) {
++ return typeof str === 'string' ? str.replace(ansiRegex, '') : str;
++};
+--- /dev/null
++++ node-chalk-0.5.0/node_modules/strip-ansi/node_modules/ansi-regex/index.js
+@@ -0,0 +1,4 @@
++'use strict';
++module.exports = function () {
++ return /\u001b\[(?:[0-9]{1,3}(?:;[0-9]{1,3})*)?[m|K]/g;
++};
+--- /dev/null
++++ node-chalk-0.5.0/node_modules/strip-ansi/node_modules/ansi-regex/package.json
+@@ -0,0 +1,61 @@
++{
++ "name": "ansi-regex",
++ "version": "0.2.1",
++ "description": "Regular expression for matching ANSI escape codes",
++ "license": "MIT",
++ "repository": {
++ "type": "git",
++ "url": "git://github.com/sindresorhus/ansi-regex"
++ },
++ "author": {
++ "name": "Sindre Sorhus",
++ "email": "sindresorhus at gmail.com",
++ "url": "http://sindresorhus.com"
++ },
++ "engines": {
++ "node": ">=0.10.0"
++ },
++ "scripts": {
++ "test": "mocha"
++ },
++ "files": [
++ "index.js"
++ ],
++ "keywords": [
++ "ansi",
++ "styles",
++ "color",
++ "colour",
++ "colors",
++ "terminal",
++ "console",
++ "cli",
++ "string",
++ "tty",
++ "escape",
++ "formatting",
++ "rgb",
++ "256",
++ "shell",
++ "xterm",
++ "command-line",
++ "text",
++ "regex",
++ "regexp",
++ "re",
++ "match",
++ "test",
++ "find",
++ "pattern"
++ ],
++ "devDependencies": {
++ "mocha": "*"
++ },
++ "readme": "# ansi-regex [![Build Status](https://travis-ci.org/sindresorhus/ansi-regex.svg?branch=master)](https://travis-ci.org/sindresorhus/ansi-regex)\n\n> Regular expression for matching [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code)\n\n\n## Install\n\n```sh\n$ npm install --save ansi-regex\n```\n\n\n## Usage\n\n```js\nvar ansiRegex = require('ansi-regex');\n\nansiRegex().test('\\u001b[4mcake\\u001b[0m');\n//=> true\n\nansiRegex().test('cake');\n//=> false\n\n' [...]
++ "readmeFilename": "readme.md",
++ "bugs": {
++ "url": "https://github.com/sindresorhus/ansi-regex/issues"
++ },
++ "_id": "ansi-regex at 0.2.1",
++ "_from": "ansi-regex@^0.2.0"
++}
+--- /dev/null
++++ node-chalk-0.5.0/node_modules/strip-ansi/node_modules/ansi-regex/readme.md
+@@ -0,0 +1,33 @@
++# ansi-regex [![Build Status](https://travis-ci.org/sindresorhus/ansi-regex.svg?branch=master)](https://travis-ci.org/sindresorhus/ansi-regex)
++
++> Regular expression for matching [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code)
++
++
++## Install
++
++```sh
++$ npm install --save ansi-regex
++```
++
++
++## Usage
++
++```js
++var ansiRegex = require('ansi-regex');
++
++ansiRegex().test('\u001b[4mcake\u001b[0m');
++//=> true
++
++ansiRegex().test('cake');
++//=> false
++
++'\u001b[4mcake\u001b[0m'.match(ansiRegex());
++//=> ['\u001b[4m', '\u001b[0m']
++```
++
++*It's a function so you can create multiple instances. Regexes with the global flag will have the `.lastIndex` property changed for each call to methods on the instance. Therefore reusing the instance with multiple calls will not work as expected for `.test()`.*
++
++
++## License
++
++MIT © [Sindre Sorhus](http://sindresorhus.com)
+--- /dev/null
++++ node-chalk-0.5.0/node_modules/strip-ansi/package.json
+@@ -0,0 +1,66 @@
++{
++ "name": "strip-ansi",
++ "version": "0.3.0",
++ "description": "Strip ANSI escape codes",
++ "license": "MIT",
++ "bin": {
++ "strip-ansi": "cli.js"
++ },
++ "repository": {
++ "type": "git",
++ "url": "git://github.com/sindresorhus/strip-ansi"
++ },
++ "author": {
++ "name": "Sindre Sorhus",
++ "email": "sindresorhus at gmail.com",
++ "url": "http://sindresorhus.com"
++ },
++ "engines": {
++ "node": ">=0.10.0"
++ },
++ "scripts": {
++ "test": "mocha"
++ },
++ "files": [
++ "index.js",
++ "cli.js"
++ ],
++ "keywords": [
++ "strip",
++ "trim",
++ "remove",
++ "ansi",
++ "styles",
++ "color",
++ "colour",
++ "colors",
++ "terminal",
++ "console",
++ "cli",
++ "string",
++ "tty",
++ "escape",
++ "formatting",
++ "rgb",
++ "256",
++ "shell",
++ "xterm",
++ "log",
++ "logging",
++ "command-line",
++ "text"
++ ],
++ "dependencies": {
++ "ansi-regex": "^0.2.1"
++ },
++ "devDependencies": {
++ "mocha": "*"
++ },
++ "readme": "# strip-ansi [![Build Status](https://travis-ci.org/sindresorhus/strip-ansi.svg?branch=master)](https://travis-ci.org/sindresorhus/strip-ansi)\n\n> Strip [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code)\n\n\n## Install\n\n```sh\n$ npm install --save strip-ansi\n```\n\n\n## Usage\n\n```js\nvar stripAnsi = require('strip-ansi');\n\nstripAnsi('\\x1b[4mcake\\x1b[0m');\n//=> 'cake'\n```\n\n\n## CLI\n\n```sh\n$ npm install --global strip-ansi\n```\n\n```sh\n$ st [...]
++ "readmeFilename": "readme.md",
++ "bugs": {
++ "url": "https://github.com/sindresorhus/strip-ansi/issues"
++ },
++ "_id": "strip-ansi at 0.3.0",
++ "_from": "strip-ansi@^0.3.0"
++}
+--- /dev/null
++++ node-chalk-0.5.0/node_modules/strip-ansi/readme.md
+@@ -0,0 +1,43 @@
++# strip-ansi [![Build Status](https://travis-ci.org/sindresorhus/strip-ansi.svg?branch=master)](https://travis-ci.org/sindresorhus/strip-ansi)
++
++> Strip [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code)
++
++
++## Install
++
++```sh
++$ npm install --save strip-ansi
++```
++
++
++## Usage
++
++```js
++var stripAnsi = require('strip-ansi');
++
++stripAnsi('\x1b[4mcake\x1b[0m');
++//=> 'cake'
++```
++
++
++## CLI
++
++```sh
++$ npm install --global strip-ansi
++```
++
++```sh
++$ strip-ansi --help
++
++Usage
++ $ strip-ansi <input-file> > <output-file>
++ $ cat <input-file> | strip-ansi > <output-file>
++
++Example
++ $ strip-ansi unicorn.txt > unicorn-stripped.txt
++```
++
++
++## License
++
++MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/debian/patches/supports-color-module.patch b/debian/patches/supports-color-module.patch
new file mode 100644
index 0000000..128b085
--- /dev/null
+++ b/debian/patches/supports-color-module.patch
@@ -0,0 +1,151 @@
+Description: Bundle supports-color module
+ This module is trivial and only chalk depends on it.
+Author: Andrew Kelley <superjoe30 at gmail.com>
+Forwarded: not-needed
+Last-Update: 2014-07-05
+
+--- /dev/null
++++ node-chalk-0.5.0/node_modules/supports-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;
++})();
+--- /dev/null
++++ node-chalk-0.5.0/node_modules/supports-color/package.json
+@@ -0,0 +1,60 @@
++{
++ "name": "supports-color",
++ "version": "0.2.0",
++ "description": "Detect whether a terminal supports color",
++ "license": "MIT",
++ "repository": {
++ "type": "git",
++ "url": "git://github.com/sindresorhus/supports-color"
++ },
++ "bin": {
++ "supports-color": "cli.js"
++ },
++ "author": {
++ "name": "Sindre Sorhus",
++ "email": "sindresorhus at gmail.com",
++ "url": "http://sindresorhus.com"
++ },
++ "engines": {
++ "node": ">=0.10.0"
++ },
++ "scripts": {
++ "test": "mocha"
++ },
++ "files": [
++ "index.js",
++ "cli.js"
++ ],
++ "keywords": [
++ "cli",
++ "bin",
++ "color",
++ "colour",
++ "colors",
++ "terminal",
++ "console",
++ "cli",
++ "ansi",
++ "styles",
++ "tty",
++ "rgb",
++ "256",
++ "shell",
++ "xterm",
++ "command-line",
++ "support",
++ "supports",
++ "capability",
++ "detect"
++ ],
++ "devDependencies": {
++ "mocha": "*"
++ },
++ "readme": "# supports-color [![Build Status](https://travis-ci.org/sindresorhus/supports-color.svg?branch=master)](https://travis-ci.org/sindresorhus/supports-color)\n\n> Detect whether a terminal supports color\n\n\n## Install\n\n```sh\n$ npm install --save supports-color\n```\n\n\n## Usage\n\n```js\nvar supportsColor = require('supports-color');\n\nif (supportsColor) {\n\tconsole.log('Terminal supports color');\n}\n```\n\nIt obeys the `--color` and `--no-color` CLI flags.\n\n\n## CL [...]
++ "readmeFilename": "readme.md",
++ "bugs": {
++ "url": "https://github.com/sindresorhus/supports-color/issues"
++ },
++ "_id": "supports-color at 0.2.0",
++ "_from": "supports-color@^0.2.0"
++}
+--- /dev/null
++++ node-chalk-0.5.0/node_modules/supports-color/readme.md
+@@ -0,0 +1,44 @@
++# supports-color [![Build Status](https://travis-ci.org/sindresorhus/supports-color.svg?branch=master)](https://travis-ci.org/sindresorhus/supports-color)
++
++> Detect whether a terminal supports color
++
++
++## Install
++
++```sh
++$ 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.
++
++
++## CLI
++
++```sh
++$ npm install --global supports-color
++```
++
++```sh
++$ supports-color --help
++
++Usage
++ $ supports-color
++
++# Exits with code 0 if color is supported and 1 if not
++```
++
++
++## License
++
++MIT © [Sindre Sorhus](http://sindresorhus.com)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-chalk.git
More information about the Pkg-javascript-commits
mailing list