fsevents 1.0.9 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of fsevents might be problematic. Click here for more details.
- package/node_modules/ansi-styles/index.js +6 -72
- package/node_modules/ansi-styles/license +21 -0
- package/node_modules/ansi-styles/package.json +36 -25
- package/node_modules/ansi-styles/readme.md +8 -36
- package/node_modules/inherits/package.json +4 -2
- package/node_modules/minimist/package.json +2 -1
- package/node_modules/mkdirp/package.json +2 -1
- package/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/package.json +38 -30
- package/node_modules/node-pre-gyp/node_modules/nopt/package.json +37 -30
- package/node_modules/node-pre-gyp/package.json +8 -8
- package/package.json +1 -1
- package/node_modules/color-convert/README.md +0 -62
- package/node_modules/color-convert/conversions.js +0 -594
- package/node_modules/color-convert/css-keywords.js +0 -151
- package/node_modules/color-convert/index.js +0 -75
- package/node_modules/color-convert/package.json +0 -92
- package/node_modules/color-convert/route.js +0 -98
@@ -1,34 +1,10 @@
|
|
1
1
|
'use strict';
|
2
|
-
var colorConvert = require('color-convert');
|
3
2
|
|
4
|
-
function
|
5
|
-
return function () {
|
6
|
-
var code = fn.apply(colorConvert, arguments);
|
7
|
-
return '\u001b[' + (code + offset) + 'm';
|
8
|
-
};
|
9
|
-
}
|
10
|
-
|
11
|
-
function wrapAnsi256(fn, offset) {
|
12
|
-
return function () {
|
13
|
-
var code = fn.apply(colorConvert, arguments);
|
14
|
-
return '\u001b[' + (38 + offset) + ';5;' + code + 'm';
|
15
|
-
};
|
16
|
-
}
|
17
|
-
|
18
|
-
function wrapAnsi16m(fn, offset) {
|
19
|
-
return function () {
|
20
|
-
var rgb = fn.apply(colorConvert, arguments);
|
21
|
-
return '\u001b[' + (38 + offset) + ';2;' +
|
22
|
-
rgb[0] + ';' + rgb[1] + ';' + rgb[2] + 'm';
|
23
|
-
};
|
24
|
-
}
|
25
|
-
|
26
|
-
function assembleStyles() {
|
3
|
+
function assembleStyles () {
|
27
4
|
var styles = {
|
28
|
-
|
5
|
+
modifiers: {
|
29
6
|
reset: [0, 0],
|
30
|
-
// 21 isn't widely supported and 22 does the same thing
|
31
|
-
bold: [1, 22],
|
7
|
+
bold: [1, 22], // 21 isn't widely supported and 22 does the same thing
|
32
8
|
dim: [2, 22],
|
33
9
|
italic: [3, 23],
|
34
10
|
underline: [4, 24],
|
@@ -36,7 +12,7 @@ function assembleStyles() {
|
|
36
12
|
hidden: [8, 28],
|
37
13
|
strikethrough: [9, 29]
|
38
14
|
},
|
39
|
-
|
15
|
+
colors: {
|
40
16
|
black: [30, 39],
|
41
17
|
red: [31, 39],
|
42
18
|
green: [32, 39],
|
@@ -47,7 +23,7 @@ function assembleStyles() {
|
|
47
23
|
white: [37, 39],
|
48
24
|
gray: [90, 39]
|
49
25
|
},
|
50
|
-
|
26
|
+
bgColors: {
|
51
27
|
bgBlack: [40, 49],
|
52
28
|
bgRed: [41, 49],
|
53
29
|
bgGreen: [42, 49],
|
@@ -60,7 +36,7 @@ function assembleStyles() {
|
|
60
36
|
};
|
61
37
|
|
62
38
|
// fix humans
|
63
|
-
styles.
|
39
|
+
styles.colors.grey = styles.colors.gray;
|
64
40
|
|
65
41
|
Object.keys(styles).forEach(function (groupName) {
|
66
42
|
var group = styles[groupName];
|
@@ -80,48 +56,6 @@ function assembleStyles() {
|
|
80
56
|
});
|
81
57
|
});
|
82
58
|
|
83
|
-
function rgb2rgb(r, g, b) {
|
84
|
-
return [r, g, b];
|
85
|
-
}
|
86
|
-
|
87
|
-
styles.color.close = '\u001b[39m';
|
88
|
-
styles.bgColor.close = '\u001b[49m';
|
89
|
-
|
90
|
-
styles.color.ansi = {};
|
91
|
-
styles.color.ansi256 = {};
|
92
|
-
styles.color.ansi16m = {
|
93
|
-
rgb: wrapAnsi16m(rgb2rgb, 0)
|
94
|
-
};
|
95
|
-
|
96
|
-
styles.bgColor.ansi = {};
|
97
|
-
styles.bgColor.ansi256 = {};
|
98
|
-
styles.bgColor.ansi16m = {
|
99
|
-
rgb: wrapAnsi16m(rgb2rgb, 10)
|
100
|
-
};
|
101
|
-
|
102
|
-
for (var key in colorConvert) {
|
103
|
-
if (!colorConvert.hasOwnProperty(key) || typeof colorConvert[key] !== 'object') {
|
104
|
-
continue;
|
105
|
-
}
|
106
|
-
|
107
|
-
var suite = colorConvert[key];
|
108
|
-
|
109
|
-
if ('ansi16' in suite) {
|
110
|
-
styles.color.ansi[key] = wrapAnsi16(suite.ansi16, 0);
|
111
|
-
styles.bgColor.ansi[key] = wrapAnsi16(suite.ansi16, 10);
|
112
|
-
}
|
113
|
-
|
114
|
-
if ('ansi256' in suite) {
|
115
|
-
styles.color.ansi256[key] = wrapAnsi256(suite.ansi256, 0);
|
116
|
-
styles.bgColor.ansi256[key] = wrapAnsi256(suite.ansi256, 10);
|
117
|
-
}
|
118
|
-
|
119
|
-
if ('rgb' in suite) {
|
120
|
-
styles.color.ansi16m[key] = wrapAnsi16m(suite.rgb, 0);
|
121
|
-
styles.bgColor.ansi16m[key] = wrapAnsi16m(suite.rgb, 10);
|
122
|
-
}
|
123
|
-
}
|
124
|
-
|
125
59
|
return styles;
|
126
60
|
}
|
127
61
|
|
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
@@ -1,24 +1,42 @@
|
|
1
1
|
{
|
2
|
-
"
|
3
|
-
|
2
|
+
"_args": [
|
3
|
+
[
|
4
|
+
"ansi-styles@^2.1.0",
|
5
|
+
"/Users/eshanker/Code/fsevents/node_modules/chalk"
|
6
|
+
]
|
7
|
+
],
|
8
|
+
"_from": "ansi-styles@>=2.1.0 <3.0.0",
|
9
|
+
"_id": "ansi-styles@2.2.1",
|
10
|
+
"_inCache": true,
|
11
|
+
"_installable": true,
|
4
12
|
"_location": "/ansi-styles",
|
5
|
-
"_nodeVersion": "4.
|
13
|
+
"_nodeVersion": "4.3.0",
|
6
14
|
"_npmOperationalInternal": {
|
7
|
-
"host": "packages-
|
8
|
-
"tmp": "tmp/ansi-styles-2.2.
|
15
|
+
"host": "packages-12-west.internal.npmjs.com",
|
16
|
+
"tmp": "tmp/ansi-styles-2.2.1.tgz_1459197317833_0.9694824463222176"
|
9
17
|
},
|
10
18
|
"_npmUser": {
|
11
|
-
"email": "
|
12
|
-
"name": "
|
19
|
+
"email": "sindresorhus@gmail.com",
|
20
|
+
"name": "sindresorhus"
|
13
21
|
},
|
14
|
-
"_npmVersion": "
|
22
|
+
"_npmVersion": "3.8.3",
|
15
23
|
"_phantomChildren": {},
|
24
|
+
"_requested": {
|
25
|
+
"name": "ansi-styles",
|
26
|
+
"raw": "ansi-styles@^2.1.0",
|
27
|
+
"rawSpec": "^2.1.0",
|
28
|
+
"scope": null,
|
29
|
+
"spec": ">=2.1.0 <3.0.0",
|
30
|
+
"type": "range"
|
31
|
+
},
|
16
32
|
"_requiredBy": [
|
17
33
|
"/chalk"
|
18
34
|
],
|
19
|
-
"_resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.
|
20
|
-
"_shasum": "
|
35
|
+
"_resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz",
|
36
|
+
"_shasum": "b432dd3358b634cf75e1e4664368240533c1ddbe",
|
21
37
|
"_shrinkwrap": null,
|
38
|
+
"_spec": "ansi-styles@^2.1.0",
|
39
|
+
"_where": "/Users/eshanker/Code/fsevents/node_modules/chalk",
|
22
40
|
"author": {
|
23
41
|
"email": "sindresorhus@gmail.com",
|
24
42
|
"name": "Sindre Sorhus",
|
@@ -27,18 +45,15 @@
|
|
27
45
|
"bugs": {
|
28
46
|
"url": "https://github.com/chalk/ansi-styles/issues"
|
29
47
|
},
|
30
|
-
"dependencies": {
|
31
|
-
"color-convert": "^1.0.0"
|
32
|
-
},
|
48
|
+
"dependencies": {},
|
33
49
|
"description": "ANSI escape codes for styling strings in the terminal",
|
34
50
|
"devDependencies": {
|
35
|
-
"
|
36
|
-
"xo": "*"
|
51
|
+
"mocha": "*"
|
37
52
|
},
|
38
53
|
"directories": {},
|
39
54
|
"dist": {
|
40
|
-
"shasum": "
|
41
|
-
"tarball": "
|
55
|
+
"shasum": "b432dd3358b634cf75e1e4664368240533c1ddbe",
|
56
|
+
"tarball": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz"
|
42
57
|
},
|
43
58
|
"engines": {
|
44
59
|
"node": ">=0.10.0"
|
@@ -46,8 +61,8 @@
|
|
46
61
|
"files": [
|
47
62
|
"index.js"
|
48
63
|
],
|
49
|
-
"gitHead": "
|
50
|
-
"homepage": "https://github.com/chalk/ansi-styles",
|
64
|
+
"gitHead": "95c59b23be760108b6530ca1c89477c21b258032",
|
65
|
+
"homepage": "https://github.com/chalk/ansi-styles#readme",
|
51
66
|
"keywords": [
|
52
67
|
"256",
|
53
68
|
"ansi",
|
@@ -75,10 +90,6 @@
|
|
75
90
|
{
|
76
91
|
"name": "sindresorhus",
|
77
92
|
"email": "sindresorhus@gmail.com"
|
78
|
-
},
|
79
|
-
{
|
80
|
-
"name": "jbnicolai",
|
81
|
-
"email": "jappelman@xebia.com"
|
82
93
|
}
|
83
94
|
],
|
84
95
|
"name": "ansi-styles",
|
@@ -89,7 +100,7 @@
|
|
89
100
|
"url": "git+https://github.com/chalk/ansi-styles.git"
|
90
101
|
},
|
91
102
|
"scripts": {
|
92
|
-
"test": "
|
103
|
+
"test": "mocha"
|
93
104
|
},
|
94
|
-
"version": "2.2.
|
105
|
+
"version": "2.2.1"
|
95
106
|
}
|
@@ -17,20 +17,12 @@ $ npm install --save ansi-styles
|
|
17
17
|
## Usage
|
18
18
|
|
19
19
|
```js
|
20
|
-
|
21
|
-
|
22
|
-
console.log(
|
23
|
-
|
24
|
-
// color conversion between 16/256/truecolor
|
25
|
-
// NOTE: if conversion goes to 16 colors or 256 colors, the original color
|
26
|
-
// may be degraded to fit that color palette. This means terminals
|
27
|
-
// that do not support 16 million colors will best-match the
|
28
|
-
// original color.
|
29
|
-
console.log(style.bgColor.ansi.hsl(120, 80, 72) + 'Hello world!' + style.bgColor.close);
|
30
|
-
console.log(style.color.ansi256.rgb(199, 20, 250) + 'Hello world!' + style.color.close);
|
31
|
-
console.log(style.color.ansi16m.hex('#ABCDEF') + 'Hello world!' + style.color.close);
|
20
|
+
var ansi = require('ansi-styles');
|
21
|
+
|
22
|
+
console.log(ansi.green.open + 'Hello world!' + ansi.green.close);
|
32
23
|
```
|
33
24
|
|
25
|
+
|
34
26
|
## API
|
35
27
|
|
36
28
|
Each style has an `open` and `close` property.
|
@@ -77,37 +69,17 @@ Each style has an `open` and `close` property.
|
|
77
69
|
|
78
70
|
By default you get a map of styles, but the styles are also available as groups. They are non-enumerable so they don't show up unless you access them explicitly. This makes it easier to expose only a subset in a higher-level module.
|
79
71
|
|
80
|
-
- `
|
81
|
-
- `
|
82
|
-
- `
|
72
|
+
- `ansi.modifiers`
|
73
|
+
- `ansi.colors`
|
74
|
+
- `ansi.bgColors`
|
83
75
|
|
84
76
|
|
85
77
|
###### Example
|
86
78
|
|
87
79
|
```js
|
88
|
-
console.log(
|
80
|
+
console.log(ansi.colors.green.open);
|
89
81
|
```
|
90
82
|
|
91
|
-
## [256 / 16 million (TrueColor) support](https://gist.github.com/XVilka/8346728)
|
92
|
-
`ansi-styles` uses the [`color-convert`](https://github.com/MoOx/color-convert) package to allow for converting between various colors and ANSI escapes, with support for 256 and 16 million colors.
|
93
|
-
|
94
|
-
To use these, call the associated conversion function with the intended output, e.g.:
|
95
|
-
|
96
|
-
```js
|
97
|
-
style.color.ansi.rgb(100, 200, 15); // RGB to 16 color ansi foreground code
|
98
|
-
style.bgColor.ansi.rgb(100, 200, 15); // RGB to 16 color ansi background code
|
99
|
-
|
100
|
-
style.color.ansi256.hsl(120, 100, 60); // HSL to 256 color ansi foreground code
|
101
|
-
style.bgColor.ansi256.hsl(120, 100, 60); // HSL to 256 color ansi foreground code
|
102
|
-
|
103
|
-
style.color.ansi16m.hex('#C0FFEE'); // Hex (RGB) to 16 million color foreground code
|
104
|
-
style.bgColor.ansi16m.hex('#C0FFEE'); // Hex (RGB) to 16 million color background code
|
105
|
-
```
|
106
|
-
|
107
|
-
## Related
|
108
|
-
|
109
|
-
- [ansi-escapes](https://github.com/sindresorhus/ansi-escapes) - ANSI escape codes for manipulating the terminal
|
110
|
-
|
111
83
|
|
112
84
|
## License
|
113
85
|
|
@@ -43,8 +43,9 @@
|
|
43
43
|
"directories": {},
|
44
44
|
"dist": {
|
45
45
|
"shasum": "b17d08d326b4423e568eff719f91b0b1cbdf69f1",
|
46
|
-
"tarball": "
|
46
|
+
"tarball": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz"
|
47
47
|
},
|
48
|
+
"homepage": "https://github.com/isaacs/inherits#readme",
|
48
49
|
"keywords": [
|
49
50
|
"browser",
|
50
51
|
"browserify",
|
@@ -65,9 +66,10 @@
|
|
65
66
|
],
|
66
67
|
"name": "inherits",
|
67
68
|
"optionalDependencies": {},
|
69
|
+
"readme": "ERROR: No README data found!",
|
68
70
|
"repository": {
|
69
71
|
"type": "git",
|
70
|
-
"url": "git://github.com/isaacs/inherits"
|
72
|
+
"url": "git://github.com/isaacs/inherits.git"
|
71
73
|
},
|
72
74
|
"scripts": {
|
73
75
|
"test": "node test"
|
@@ -49,7 +49,7 @@
|
|
49
49
|
"directories": {},
|
50
50
|
"dist": {
|
51
51
|
"shasum": "857fcabfc3397d2625b8228262e86aa7a011b05d",
|
52
|
-
"tarball": "
|
52
|
+
"tarball": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz"
|
53
53
|
},
|
54
54
|
"homepage": "https://github.com/substack/minimist",
|
55
55
|
"keywords": [
|
@@ -68,6 +68,7 @@
|
|
68
68
|
],
|
69
69
|
"name": "minimist",
|
70
70
|
"optionalDependencies": {},
|
71
|
+
"readme": "ERROR: No README data found!",
|
71
72
|
"repository": {
|
72
73
|
"type": "git",
|
73
74
|
"url": "git://github.com/substack/minimist.git"
|
@@ -55,7 +55,7 @@
|
|
55
55
|
"directories": {},
|
56
56
|
"dist": {
|
57
57
|
"shasum": "30057438eac6cf7f8c4767f38648d6697d75c903",
|
58
|
-
"tarball": "
|
58
|
+
"tarball": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz"
|
59
59
|
},
|
60
60
|
"gitHead": "d4eff0f06093aed4f387e88e9fc301cb76beedc7",
|
61
61
|
"homepage": "https://github.com/substack/node-mkdirp#readme",
|
@@ -73,6 +73,7 @@
|
|
73
73
|
],
|
74
74
|
"name": "mkdirp",
|
75
75
|
"optionalDependencies": {},
|
76
|
+
"readme": "ERROR: No README data found!",
|
76
77
|
"repository": {
|
77
78
|
"type": "git",
|
78
79
|
"url": "git+https://github.com/substack/node-mkdirp.git"
|
@@ -1,48 +1,56 @@
|
|
1
1
|
{
|
2
|
-
"
|
3
|
-
"
|
4
|
-
"
|
5
|
-
"
|
6
|
-
|
7
|
-
"email": "
|
8
|
-
|
9
|
-
"main": "abbrev.js",
|
10
|
-
"scripts": {
|
11
|
-
"test": "tap test.js --cov"
|
12
|
-
},
|
13
|
-
"repository": {
|
14
|
-
"type": "git",
|
15
|
-
"url": "git+ssh://git@github.com/isaacs/abbrev-js.git"
|
2
|
+
"_from": "abbrev@1",
|
3
|
+
"_id": "abbrev@1.0.7",
|
4
|
+
"_location": "/node-pre-gyp/nopt/abbrev",
|
5
|
+
"_nodeVersion": "2.0.1",
|
6
|
+
"_npmUser": {
|
7
|
+
"email": "isaacs@npmjs.com",
|
8
|
+
"name": "isaacs"
|
16
9
|
},
|
17
|
-
"
|
18
|
-
"
|
19
|
-
|
10
|
+
"_npmVersion": "2.10.1",
|
11
|
+
"_phantomChildren": {},
|
12
|
+
"_requiredBy": [
|
13
|
+
"/node-pre-gyp/nopt"
|
14
|
+
],
|
15
|
+
"_resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.0.7.tgz",
|
16
|
+
"_shasum": "5b6035b2ee9d4fb5cf859f08a9be81b208491843",
|
17
|
+
"_shrinkwrap": null,
|
18
|
+
"author": {
|
19
|
+
"email": "i@izs.me",
|
20
|
+
"name": "Isaac Z. Schlueter"
|
20
21
|
},
|
21
|
-
"gitHead": "821d09ce7da33627f91bbd8ed631497ed6f760c2",
|
22
22
|
"bugs": {
|
23
23
|
"url": "https://github.com/isaacs/abbrev-js/issues"
|
24
24
|
},
|
25
|
-
"
|
26
|
-
"
|
27
|
-
"
|
28
|
-
|
29
|
-
"_npmVersion": "2.10.1",
|
30
|
-
"_nodeVersion": "2.0.1",
|
31
|
-
"_npmUser": {
|
32
|
-
"name": "isaacs",
|
33
|
-
"email": "isaacs@npmjs.com"
|
25
|
+
"dependencies": {},
|
26
|
+
"description": "Like ruby's abbrev module, but in js",
|
27
|
+
"devDependencies": {
|
28
|
+
"tap": "^1.2.0"
|
34
29
|
},
|
30
|
+
"directories": {},
|
35
31
|
"dist": {
|
36
32
|
"shasum": "5b6035b2ee9d4fb5cf859f08a9be81b208491843",
|
37
33
|
"tarball": "http://registry.npmjs.org/abbrev/-/abbrev-1.0.7.tgz"
|
38
34
|
},
|
35
|
+
"gitHead": "821d09ce7da33627f91bbd8ed631497ed6f760c2",
|
36
|
+
"homepage": "https://github.com/isaacs/abbrev-js#readme",
|
37
|
+
"license": "ISC",
|
38
|
+
"main": "abbrev.js",
|
39
39
|
"maintainers": [
|
40
40
|
{
|
41
41
|
"name": "isaacs",
|
42
42
|
"email": "i@izs.me"
|
43
43
|
}
|
44
44
|
],
|
45
|
-
"
|
46
|
-
"
|
47
|
-
"readme": "ERROR: No README data found!"
|
45
|
+
"name": "abbrev",
|
46
|
+
"optionalDependencies": {},
|
47
|
+
"readme": "ERROR: No README data found!",
|
48
|
+
"repository": {
|
49
|
+
"type": "git",
|
50
|
+
"url": "git+ssh://git@github.com/isaacs/abbrev-js.git"
|
51
|
+
},
|
52
|
+
"scripts": {
|
53
|
+
"test": "tap test.js --cov"
|
54
|
+
},
|
55
|
+
"version": "1.0.7"
|
48
56
|
}
|
@@ -1,48 +1,47 @@
|
|
1
1
|
{
|
2
|
-
"
|
3
|
-
"
|
4
|
-
"
|
2
|
+
"_from": "nopt@~3.0.1",
|
3
|
+
"_id": "nopt@3.0.6",
|
4
|
+
"_location": "/node-pre-gyp/nopt",
|
5
|
+
"_nodeVersion": "4.2.1",
|
6
|
+
"_npmUser": {
|
7
|
+
"email": "ogd@aoaioxxysz.net",
|
8
|
+
"name": "othiym23"
|
9
|
+
},
|
10
|
+
"_npmVersion": "2.14.10",
|
11
|
+
"_phantomChildren": {},
|
12
|
+
"_requiredBy": [
|
13
|
+
"/node-pre-gyp"
|
14
|
+
],
|
15
|
+
"_resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz",
|
16
|
+
"_shasum": "c6465dbf08abcd4db359317f79ac68a646b28ff9",
|
17
|
+
"_shrinkwrap": null,
|
5
18
|
"author": {
|
6
|
-
"name": "Isaac Z. Schlueter",
|
7
19
|
"email": "i@izs.me",
|
20
|
+
"name": "Isaac Z. Schlueter",
|
8
21
|
"url": "http://blog.izs.me/"
|
9
22
|
},
|
10
|
-
"main": "lib/nopt.js",
|
11
|
-
"scripts": {
|
12
|
-
"test": "tap test/*.js"
|
13
|
-
},
|
14
|
-
"repository": {
|
15
|
-
"type": "git",
|
16
|
-
"url": "git+https://github.com/npm/nopt.git"
|
17
|
-
},
|
18
23
|
"bin": {
|
19
24
|
"nopt": "./bin/nopt.js"
|
20
25
|
},
|
21
|
-
"
|
26
|
+
"bugs": {
|
27
|
+
"url": "https://github.com/npm/nopt/issues"
|
28
|
+
},
|
22
29
|
"dependencies": {
|
23
30
|
"abbrev": "1"
|
24
31
|
},
|
32
|
+
"description": "Option parsing for Node, supporting types, shorthands, etc. Used by npm.",
|
25
33
|
"devDependencies": {
|
26
34
|
"tap": "^1.2.0"
|
27
35
|
},
|
28
|
-
"
|
29
|
-
"bugs": {
|
30
|
-
"url": "https://github.com/npm/nopt/issues"
|
31
|
-
},
|
32
|
-
"homepage": "https://github.com/npm/nopt#readme",
|
33
|
-
"_id": "nopt@3.0.6",
|
34
|
-
"_shasum": "c6465dbf08abcd4db359317f79ac68a646b28ff9",
|
35
|
-
"_from": "nopt@~3.0.1",
|
36
|
-
"_npmVersion": "2.14.10",
|
37
|
-
"_nodeVersion": "4.2.1",
|
38
|
-
"_npmUser": {
|
39
|
-
"name": "othiym23",
|
40
|
-
"email": "ogd@aoaioxxysz.net"
|
41
|
-
},
|
36
|
+
"directories": {},
|
42
37
|
"dist": {
|
43
38
|
"shasum": "c6465dbf08abcd4db359317f79ac68a646b28ff9",
|
44
39
|
"tarball": "http://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz"
|
45
40
|
},
|
41
|
+
"gitHead": "10a750c9bb99c1950160353459e733ac2aa18cb6",
|
42
|
+
"homepage": "https://github.com/npm/nopt#readme",
|
43
|
+
"license": "ISC",
|
44
|
+
"main": "lib/nopt.js",
|
46
45
|
"maintainers": [
|
47
46
|
{
|
48
47
|
"name": "isaacs",
|
@@ -57,7 +56,15 @@
|
|
57
56
|
"email": "kat@sykosomatic.org"
|
58
57
|
}
|
59
58
|
],
|
60
|
-
"
|
61
|
-
"
|
62
|
-
"readme": "ERROR: No README data found!"
|
59
|
+
"name": "nopt",
|
60
|
+
"optionalDependencies": {},
|
61
|
+
"readme": "ERROR: No README data found!",
|
62
|
+
"repository": {
|
63
|
+
"type": "git",
|
64
|
+
"url": "git+https://github.com/npm/nopt.git"
|
65
|
+
},
|
66
|
+
"scripts": {
|
67
|
+
"test": "tap test/*.js"
|
68
|
+
},
|
69
|
+
"version": "3.0.6"
|
63
70
|
}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"_args": [
|
3
3
|
[
|
4
|
-
"node-pre-gyp
|
4
|
+
"node-pre-gyp@^0.6.24",
|
5
5
|
"/Users/eshanker/Code/fsevents"
|
6
6
|
]
|
7
7
|
],
|
8
|
-
"_from": "node-pre-gyp
|
8
|
+
"_from": "node-pre-gyp@>=0.6.24 <0.7.0",
|
9
9
|
"_id": "node-pre-gyp@0.6.24",
|
10
10
|
"_inCache": true,
|
11
11
|
"_installable": true,
|
@@ -22,11 +22,11 @@
|
|
22
22
|
"_phantomChildren": {},
|
23
23
|
"_requested": {
|
24
24
|
"name": "node-pre-gyp",
|
25
|
-
"raw": "node-pre-gyp
|
26
|
-
"rawSpec": "0.6.24",
|
25
|
+
"raw": "node-pre-gyp@^0.6.24",
|
26
|
+
"rawSpec": "^0.6.24",
|
27
27
|
"scope": null,
|
28
|
-
"spec": "0.6.24",
|
29
|
-
"type": "
|
28
|
+
"spec": ">=0.6.24 <0.7.0",
|
29
|
+
"type": "range"
|
30
30
|
},
|
31
31
|
"_requiredBy": [
|
32
32
|
"/"
|
@@ -34,7 +34,7 @@
|
|
34
34
|
"_resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.6.24.tgz",
|
35
35
|
"_shasum": "0ea2b5fdd516f67116413991f8f7d89e0dffbcfa",
|
36
36
|
"_shrinkwrap": null,
|
37
|
-
"_spec": "node-pre-gyp
|
37
|
+
"_spec": "node-pre-gyp@^0.6.24",
|
38
38
|
"_where": "/Users/eshanker/Code/fsevents",
|
39
39
|
"author": {
|
40
40
|
"email": "dane@mapbox.com",
|
@@ -78,7 +78,7 @@
|
|
78
78
|
"directories": {},
|
79
79
|
"dist": {
|
80
80
|
"shasum": "0ea2b5fdd516f67116413991f8f7d89e0dffbcfa",
|
81
|
-
"tarball": "
|
81
|
+
"tarball": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.6.24.tgz"
|
82
82
|
},
|
83
83
|
"gitHead": "615e645b27eac9890e84ac309bf8d627d0c675ee",
|
84
84
|
"homepage": "https://github.com/mapbox/node-pre-gyp",
|
package/package.json
CHANGED
@@ -1,62 +0,0 @@
|
|
1
|
-
# color-convert
|
2
|
-
|
3
|
-
[![Build Status](https://travis-ci.org/MoOx/color-convert.svg?branch=master)](https://travis-ci.org/MoOx/color-convert)
|
4
|
-
|
5
|
-
Color-convert is a color conversion library for JavaScript and node.
|
6
|
-
It converts all ways between `rgb`, `hsl`, `hsv`, `hwb`, `cmyk`, `ansi`, `ansi16`, `hex` strings, and CSS `keyword`s:
|
7
|
-
|
8
|
-
```js
|
9
|
-
var convert = require('color-convert');
|
10
|
-
|
11
|
-
convert.rgb.hsl(140, 200, 100); // [96, 48, 59]
|
12
|
-
convert.keyword.rgb('blue'); // [0, 0, 255]
|
13
|
-
```
|
14
|
-
|
15
|
-
# Install
|
16
|
-
|
17
|
-
```console
|
18
|
-
$ npm install color-convert
|
19
|
-
```
|
20
|
-
|
21
|
-
# API
|
22
|
-
|
23
|
-
Simply get the property of the _from_ and _to_ conversion that you're looking for.
|
24
|
-
|
25
|
-
All functions have a rounded and unrounded variant. By default, return values are rounded. To get the unrounded (raw) results, simply tack on `.raw` to the function.
|
26
|
-
|
27
|
-
```js
|
28
|
-
var convert = require('color-convert');
|
29
|
-
|
30
|
-
// Hex to LAB
|
31
|
-
convert.hex.lab('DEADBF'); // [ 76, 21, -2 ]
|
32
|
-
convert.hex.lab.raw('DEADBF'); // [ 75.56213190997677, 20.653827952644754, -2.290532499330533 ]
|
33
|
-
|
34
|
-
// RGB to CMYK
|
35
|
-
convert.rgb.cmyk(167, 255, 4); // [ 35, 0, 98, 0 ]
|
36
|
-
convert.rgb.cmyk.raw(167, 255, 4); // [ 34.509803921568626, 0, 98.43137254901961, 0 ]
|
37
|
-
```
|
38
|
-
|
39
|
-
### Arrays
|
40
|
-
All functions that accept multiple arguments also support passing an array.
|
41
|
-
|
42
|
-
Not that this does **not** apply to functions that convert from a color that only requires one value (e.g. `keyword`, `ansi256`, `hex`, etc.)
|
43
|
-
|
44
|
-
```js
|
45
|
-
var convert = require('color-convert');
|
46
|
-
|
47
|
-
convert.rgb.hex(123, 45, 67); // '7B2D43'
|
48
|
-
convert.rgb.hex([123, 45, 67]); // '7B2D43'
|
49
|
-
```
|
50
|
-
|
51
|
-
## Routing
|
52
|
-
|
53
|
-
Conversions that don't have an _explicitly_ defined conversion (in [conversions.js](conversions.js)), but can be converted by means of sub-conversions (e.g. XYZ -> **RGB** -> CMYK), are automatically routed together. This allows just about any color model supported by `color-convert` to be converted to any other model, so long as a sub-conversion path exists. This is also true for conversions requiring more than one step in between (e.g. LCH -> **LAB** -> **XYZ** -> **RGB** -> Hex).
|
54
|
-
|
55
|
-
Keep in mind that extensive conversions _may_ result in a loss of precision, and exist only to be complete. For a list of "direct" (single-step) conversions, see [conversions.js](conversions.js).
|
56
|
-
|
57
|
-
# Contribute
|
58
|
-
|
59
|
-
If there is a new model you would like to support, or want to add a direct conversion between two existing models, please send us a pull request.
|
60
|
-
|
61
|
-
# License
|
62
|
-
Copyright © 2011-2016, Heather Arthur and Josh Junon. Licensed under the [MIT License](LICENSE).
|