--
This commit is contained in:
parent
24f3d27984
commit
6b60015c02
9588 changed files with 1149251 additions and 49 deletions
15
node_modules/ansicolors/.npmignore
generated
vendored
Normal file
15
node_modules/ansicolors/.npmignore
generated
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
lib-cov
|
||||
*.seed
|
||||
*.log
|
||||
*.csv
|
||||
*.dat
|
||||
*.out
|
||||
*.pid
|
||||
*.gz
|
||||
|
||||
pids
|
||||
logs
|
||||
results
|
||||
|
||||
npm-debug.log
|
||||
node_modules
|
||||
4
node_modules/ansicolors/.travis.yml
generated
vendored
Normal file
4
node_modules/ansicolors/.travis.yml
generated
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
language: node_js
|
||||
node_js:
|
||||
- 0.6
|
||||
- 0.8
|
||||
23
node_modules/ansicolors/LICENSE
generated
vendored
Normal file
23
node_modules/ansicolors/LICENSE
generated
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
Copyright 2013 Thorsten Lorenz.
|
||||
All rights reserved.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person
|
||||
obtaining a copy of this software and associated documentation
|
||||
files (the "Software"), to deal in the Software without
|
||||
restriction, including without limitation the rights to use,
|
||||
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the
|
||||
Software is furnished to do so, subject to the following
|
||||
conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
OTHER DEALINGS IN THE SOFTWARE.
|
||||
42
node_modules/ansicolors/README.md
generated
vendored
Normal file
42
node_modules/ansicolors/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
# ansicolors [](http://next.travis-ci.org/thlorenz/ansicolors)
|
||||
|
||||
Functions that surround a string with ansicolor codes so it prints in color.
|
||||
|
||||
## Installation
|
||||
|
||||
npm install ansicolors
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var colors = require('ansicolors');
|
||||
|
||||
// foreground colors
|
||||
var redHerring = colors.red('herring');
|
||||
var blueMoon = colors.blue('moon');
|
||||
var brighBlueMoon = colors.brightBlue('moon');
|
||||
|
||||
console.log(redHerring); // this will print 'herring' in red
|
||||
console.log(blueMoon); // this 'moon' in blue
|
||||
console.log(brightBlueMoon); // I think you got the idea
|
||||
|
||||
// background colors
|
||||
console.log(colors.bgYellow('printed on yellow background'));
|
||||
console.log(colors.bgBrightBlue('printed on bright blue background'));
|
||||
|
||||
// mixing background and foreground colors
|
||||
// below two lines have same result (order in which bg and fg are combined doesn't matter)
|
||||
console.log(colors.bgYellow(colors.blue('printed on yellow background in blue')));
|
||||
console.log(colors.blue(colors.bgYellow('printed on yellow background in blue')));
|
||||
```
|
||||
|
||||
## Tests
|
||||
|
||||
Look at the [tests](https://github.com/thlorenz/ansicolors/blob/master/test/ansicolors.js) to see more examples and/or run them via:
|
||||
|
||||
npm explore ansicolors && npm test
|
||||
|
||||
## Alternatives
|
||||
|
||||
**ansicolors** tries to meet simple use cases with a very simple API. However, if you need a more powerful ansi formatting tool,
|
||||
I'd suggest to look at the [features](https://github.com/TooTallNate/ansi.js#features) of the [ansi module](https://github.com/TooTallNate/ansi.js).
|
||||
55
node_modules/ansicolors/ansicolors.js
generated
vendored
Normal file
55
node_modules/ansicolors/ansicolors.js
generated
vendored
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
// ColorCodes explained: http://www.termsys.demon.co.uk/vtansi.htm
|
||||
'use strict';
|
||||
|
||||
var colorNums = {
|
||||
white : 37
|
||||
, black : 30
|
||||
, blue : 34
|
||||
, cyan : 36
|
||||
, green : 32
|
||||
, magenta : 35
|
||||
, red : 31
|
||||
, yellow : 33
|
||||
, brightBlack : 90
|
||||
, brightRed : 91
|
||||
, brightGreen : 92
|
||||
, brightYellow : 93
|
||||
, brightBlue : 94
|
||||
, brightMagenta : 95
|
||||
, brightCyan : 96
|
||||
, brightWhite : 97
|
||||
}
|
||||
, backgroundColorNums = {
|
||||
bgBlack : 40
|
||||
, bgRed : 41
|
||||
, bgGreen : 42
|
||||
, bgYellow : 43
|
||||
, bgBlue : 44
|
||||
, bgMagenta : 45
|
||||
, bgCyan : 46
|
||||
, bgWhite : 47
|
||||
, bgBrightBlack : 100
|
||||
, bgBrightRed : 101
|
||||
, bgBrightGreen : 102
|
||||
, bgBrightYellow : 103
|
||||
, bgBrightBlue : 104
|
||||
, bgBrightMagenta : 105
|
||||
, bgBrightCyan : 106
|
||||
, bgBrightWhite : 107
|
||||
}
|
||||
, colors = {};
|
||||
|
||||
|
||||
Object.keys(colorNums).forEach(function (k) {
|
||||
colors[k] = function (s) {
|
||||
return '\u001b[' + colorNums[k] + 'm' + s + '\u001b[39m';
|
||||
};
|
||||
});
|
||||
|
||||
Object.keys(backgroundColorNums).forEach(function (k) {
|
||||
colors[k] = function (s) {
|
||||
return '\u001b[' + backgroundColorNums[k] + 'm' + s + '\u001b[49m';
|
||||
};
|
||||
});
|
||||
|
||||
module.exports = colors;
|
||||
87
node_modules/ansicolors/package.json
generated
vendored
Normal file
87
node_modules/ansicolors/package.json
generated
vendored
Normal file
|
|
@ -0,0 +1,87 @@
|
|||
{
|
||||
"_args": [
|
||||
[
|
||||
{
|
||||
"raw": "ansicolors@~0.2.1",
|
||||
"scope": null,
|
||||
"escapedName": "ansicolors",
|
||||
"name": "ansicolors",
|
||||
"rawSpec": "~0.2.1",
|
||||
"spec": ">=0.2.1 <0.3.0",
|
||||
"type": "range"
|
||||
},
|
||||
"/Users/jose/Documents/GitHub/Mods/node_modules/cardinal"
|
||||
]
|
||||
],
|
||||
"_from": "ansicolors@>=0.2.1 <0.3.0",
|
||||
"_id": "ansicolors@0.2.1",
|
||||
"_inCache": true,
|
||||
"_location": "/ansicolors",
|
||||
"_npmUser": {
|
||||
"name": "thlorenz",
|
||||
"email": "thlorenz@gmx.de"
|
||||
},
|
||||
"_npmVersion": "1.1.69",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"raw": "ansicolors@~0.2.1",
|
||||
"scope": null,
|
||||
"escapedName": "ansicolors",
|
||||
"name": "ansicolors",
|
||||
"rawSpec": "~0.2.1",
|
||||
"spec": ">=0.2.1 <0.3.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/cardinal"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/ansicolors/-/ansicolors-0.2.1.tgz",
|
||||
"_shasum": "be089599097b74a5c9c4a84a0cdbcdb62bd87aef",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "ansicolors@~0.2.1",
|
||||
"_where": "/Users/jose/Documents/GitHub/Mods/node_modules/cardinal",
|
||||
"author": {
|
||||
"name": "Thorsten Lorenz",
|
||||
"email": "thlorenz@gmx.de",
|
||||
"url": "thlorenz.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/thlorenz/ansicolors/issues"
|
||||
},
|
||||
"dependencies": {},
|
||||
"description": "Functions that surround a string with ansicolor codes so it prints in color.",
|
||||
"devDependencies": {},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "be089599097b74a5c9c4a84a0cdbcdb62bd87aef",
|
||||
"tarball": "https://registry.npmjs.org/ansicolors/-/ansicolors-0.2.1.tgz"
|
||||
},
|
||||
"gitHead": "858847ca28e8b360d9b70eee0592700fa2ab087d",
|
||||
"homepage": "https://github.com/thlorenz/ansicolors#readme",
|
||||
"keywords": [
|
||||
"ansi",
|
||||
"colors",
|
||||
"highlight",
|
||||
"string"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "ansicolors.js",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "thlorenz",
|
||||
"email": "thlorenz@gmx.de"
|
||||
}
|
||||
],
|
||||
"name": "ansicolors",
|
||||
"optionalDependencies": {},
|
||||
"readme": "# ansicolors [](http://next.travis-ci.org/thlorenz/ansicolors)\n\nFunctions that surround a string with ansicolor codes so it prints in color.\n\n## Installation\n\n npm install ansicolors\n\n## Usage\n\n```js\nvar colors = require('ansicolors');\n\n// foreground colors\nvar redHerring = colors.red('herring');\nvar blueMoon = colors.blue('moon');\nvar brighBlueMoon = colors.brightBlue('moon');\n\nconsole.log(redHerring); // this will print 'herring' in red\nconsole.log(blueMoon); // this 'moon' in blue\nconsole.log(brightBlueMoon); // I think you got the idea\n\n// background colors\nconsole.log(colors.bgYellow('printed on yellow background'));\nconsole.log(colors.bgBrightBlue('printed on bright blue background'));\n\n// mixing background and foreground colors\n// below two lines have same result (order in which bg and fg are combined doesn't matter)\nconsole.log(colors.bgYellow(colors.blue('printed on yellow background in blue')));\nconsole.log(colors.blue(colors.bgYellow('printed on yellow background in blue')));\n```\n\n## Tests\n\nLook at the [tests](https://github.com/thlorenz/ansicolors/blob/master/test/ansicolors.js) to see more examples and/or run them via: \n\n npm explore ansicolors && npm test\n\n## Alternatives\n\n**ansicolors** tries to meet simple use cases with a very simple API. However, if you need a more powerful ansi formatting tool, \nI'd suggest to look at the [features](https://github.com/TooTallNate/ansi.js#features) of the [ansi module](https://github.com/TooTallNate/ansi.js).\n",
|
||||
"readmeFilename": "README.md",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/thlorenz/ansicolors.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "node test/*.js"
|
||||
},
|
||||
"version": "0.2.1"
|
||||
}
|
||||
55
node_modules/ansicolors/test/ansicolors.js
generated
vendored
Normal file
55
node_modules/ansicolors/test/ansicolors.js
generated
vendored
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
'use strict';
|
||||
|
||||
var assert = require('assert')
|
||||
, colors = require('..');
|
||||
|
||||
console.log('Foreground colors ..');
|
||||
|
||||
assert.equal(colors.white('printed in white'), '\u001b[37mprinted in white\u001b[39m');
|
||||
|
||||
assert.equal(colors.black('printed in black'), '\u001b[30mprinted in black\u001b[39m');
|
||||
assert.equal(colors.brightBlack('printed in bright black'), '\u001b[90mprinted in bright black\u001b[39m');
|
||||
|
||||
assert.equal(colors.green('printed in green'), '\u001b[32mprinted in green\u001b[39m');
|
||||
assert.equal(colors.brightGreen('printed in bright green'), '\u001b[92mprinted in bright green\u001b[39m');
|
||||
|
||||
assert.equal(colors.red('printed in red'), '\u001b[31mprinted in red\u001b[39m');
|
||||
assert.equal(colors.brightRed('printed in bright red'), '\u001b[91mprinted in bright red\u001b[39m');
|
||||
|
||||
console.log('OK');
|
||||
|
||||
console.log('Background colors ..');
|
||||
|
||||
assert.equal(
|
||||
colors.bgBlack('printed with black background')
|
||||
, '\u001b[40mprinted with black background\u001b[49m'
|
||||
);
|
||||
|
||||
assert.equal(
|
||||
colors.bgYellow('printed with yellow background')
|
||||
, '\u001b[43mprinted with yellow background\u001b[49m'
|
||||
);
|
||||
assert.equal(
|
||||
colors.bgBrightYellow('printed with bright yellow background')
|
||||
, '\u001b[103mprinted with bright yellow background\u001b[49m'
|
||||
);
|
||||
|
||||
assert.equal(
|
||||
colors.bgWhite('printed with white background')
|
||||
, '\u001b[47mprinted with white background\u001b[49m'
|
||||
);
|
||||
|
||||
console.log('OK');
|
||||
|
||||
console.log('Mixing background and foreground colors ..');
|
||||
|
||||
assert.equal(
|
||||
colors.blue(colors.bgYellow('printed in blue with yellow background'))
|
||||
, '\u001b[34m\u001b[43mprinted in blue with yellow background\u001b[49m\u001b[39m'
|
||||
);
|
||||
assert.equal(
|
||||
colors.bgYellow(colors.blue('printed in blue with yellow background again'))
|
||||
, '\u001b[43m\u001b[34mprinted in blue with yellow background again\u001b[39m\u001b[49m'
|
||||
);
|
||||
|
||||
console.log('OK');
|
||||
Loading…
Reference in a new issue