serverless-spy 0.0.41 → 0.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +2 -3
- package/cli/cli.ts +53 -12
- package/cli/package.json +1 -4
- package/dist/releasetag.txt +1 -1
- package/lib/cli/cli.js +37 -13
- package/lib/cli/cli.mjs +37 -13
- package/lib/cli/cli.ts +53 -12
- package/lib/cli/package.json +1 -4
- package/lib/src/ServerlessSpy.js +1 -1
- package/package.json +1 -3
- package/node_modules/expand-tilde/LICENSE +0 -21
- package/node_modules/expand-tilde/README.md +0 -80
- package/node_modules/expand-tilde/index.js +0 -22
- package/node_modules/expand-tilde/package.json +0 -67
- package/node_modules/get-installed-path/CHANGELOG.md +0 -99
- package/node_modules/get-installed-path/LICENSE +0 -21
- package/node_modules/get-installed-path/README.md +0 -282
- package/node_modules/get-installed-path/dist/index.es.js +0 -181
- package/node_modules/get-installed-path/dist/index.js +0 -188
- package/node_modules/get-installed-path/package.json +0 -101
- package/node_modules/global-modules/LICENSE +0 -21
- package/node_modules/global-modules/README.md +0 -75
- package/node_modules/global-modules/index.js +0 -31
- package/node_modules/global-modules/package.json +0 -72
- package/node_modules/global-prefix/LICENSE +0 -21
- package/node_modules/global-prefix/README.md +0 -78
- package/node_modules/global-prefix/index.js +0 -96
- package/node_modules/global-prefix/node_modules/which/CHANGELOG.md +0 -152
- package/node_modules/global-prefix/node_modules/which/LICENSE +0 -15
- package/node_modules/global-prefix/node_modules/which/README.md +0 -51
- package/node_modules/global-prefix/node_modules/which/bin/which +0 -52
- package/node_modules/global-prefix/node_modules/which/package.json +0 -30
- package/node_modules/global-prefix/node_modules/which/which.js +0 -135
- package/node_modules/global-prefix/package.json +0 -75
- package/node_modules/homedir-polyfill/LICENSE +0 -21
- package/node_modules/homedir-polyfill/README.md +0 -96
- package/node_modules/homedir-polyfill/index.js +0 -9
- package/node_modules/homedir-polyfill/package.json +0 -62
- package/node_modules/homedir-polyfill/polyfill.js +0 -81
- package/node_modules/ini/LICENSE +0 -15
- package/node_modules/ini/README.md +0 -102
- package/node_modules/ini/ini.js +0 -206
- package/node_modules/ini/package.json +0 -33
- package/node_modules/is-windows/LICENSE +0 -21
- package/node_modules/is-windows/README.md +0 -95
- package/node_modules/is-windows/index.js +0 -27
- package/node_modules/is-windows/package.json +0 -71
- package/node_modules/isexe/.npmignore +0 -2
- package/node_modules/isexe/LICENSE +0 -15
- package/node_modules/isexe/README.md +0 -51
- package/node_modules/isexe/index.js +0 -57
- package/node_modules/isexe/mode.js +0 -41
- package/node_modules/isexe/package.json +0 -31
- package/node_modules/isexe/test/basic.js +0 -221
- package/node_modules/isexe/windows.js +0 -42
- package/node_modules/parse-passwd/LICENSE +0 -21
- package/node_modules/parse-passwd/README.md +0 -86
- package/node_modules/parse-passwd/index.js +0 -56
- package/node_modules/parse-passwd/package.json +0 -55
- package/node_modules/resolve-dir/LICENSE +0 -21
- package/node_modules/resolve-dir/README.md +0 -88
- package/node_modules/resolve-dir/index.js +0 -22
- package/node_modules/resolve-dir/package.json +0 -73
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "get-installed-path",
|
|
3
|
-
"version": "4.0.8",
|
|
4
|
-
"description": "Get installation path where the given package is installed. Works for globally and locally installed packages",
|
|
5
|
-
"repository": "tunnckoCore/get-installed-path",
|
|
6
|
-
"homepage": "https://github.com/tunnckoCore/get-installed-path",
|
|
7
|
-
"author": "Charlike Mike Reagent <@tunnckoCore> (https://i.am.charlike.online)",
|
|
8
|
-
"nspId": "fd91a3c7-498b-4ff8-8f29-5d93a9d97626",
|
|
9
|
-
"src": "./src/**/*.js",
|
|
10
|
-
"main": "./dist/index.js",
|
|
11
|
-
"module": "./dist/index.es.js",
|
|
12
|
-
"scripts": {
|
|
13
|
-
"start": "hela",
|
|
14
|
-
"test": "yarn start test",
|
|
15
|
-
"posttest": "rimraf dist/node_modules && rimraf dist/test.js",
|
|
16
|
-
"precommit": "yarn start precommit",
|
|
17
|
-
"commit": "yarn start commit"
|
|
18
|
-
},
|
|
19
|
-
"license": "MIT",
|
|
20
|
-
"licenseStart": 2016,
|
|
21
|
-
"engines": {
|
|
22
|
-
"node": ">=6",
|
|
23
|
-
"npm": ">=5",
|
|
24
|
-
"yarn": ">=1"
|
|
25
|
-
},
|
|
26
|
-
"files": [
|
|
27
|
-
"dist/"
|
|
28
|
-
],
|
|
29
|
-
"dependencies": {
|
|
30
|
-
"global-modules": "1.0.0"
|
|
31
|
-
},
|
|
32
|
-
"devDependencies": {
|
|
33
|
-
"eslint-config-standard-tunnckocore": "1.0.10",
|
|
34
|
-
"hela": "1.2.1",
|
|
35
|
-
"hela-config-tunnckocore": "1.0.0",
|
|
36
|
-
"husky": "0.14.3",
|
|
37
|
-
"mkdirp": "0.5.1",
|
|
38
|
-
"mukla": "0.4.9",
|
|
39
|
-
"pkg-dir": "2.0.0",
|
|
40
|
-
"rimraf": "2.6.2",
|
|
41
|
-
"semantic-release": "7.0.2"
|
|
42
|
-
},
|
|
43
|
-
"keywords": [
|
|
44
|
-
"filepath",
|
|
45
|
-
"get",
|
|
46
|
-
"global",
|
|
47
|
-
"globally",
|
|
48
|
-
"install",
|
|
49
|
-
"installed",
|
|
50
|
-
"local",
|
|
51
|
-
"locally",
|
|
52
|
-
"npm",
|
|
53
|
-
"package",
|
|
54
|
-
"path",
|
|
55
|
-
"pkg",
|
|
56
|
-
"resolve"
|
|
57
|
-
],
|
|
58
|
-
"verb": {
|
|
59
|
-
"run": true,
|
|
60
|
-
"toc": {
|
|
61
|
-
"render": true,
|
|
62
|
-
"method": "preWrite",
|
|
63
|
-
"maxdepth": 3
|
|
64
|
-
},
|
|
65
|
-
"layout": "empty",
|
|
66
|
-
"tasks": [
|
|
67
|
-
"readme"
|
|
68
|
-
],
|
|
69
|
-
"related": {
|
|
70
|
-
"list": [
|
|
71
|
-
"always-done",
|
|
72
|
-
"minibase",
|
|
73
|
-
"try-catch-core",
|
|
74
|
-
"detect-installed",
|
|
75
|
-
"is-installed",
|
|
76
|
-
"global-modules",
|
|
77
|
-
"global-prefix",
|
|
78
|
-
"global-paths"
|
|
79
|
-
],
|
|
80
|
-
"highlight": "detect-installed"
|
|
81
|
-
},
|
|
82
|
-
"lint": {
|
|
83
|
-
"reflinks": true
|
|
84
|
-
},
|
|
85
|
-
"reflinks": [
|
|
86
|
-
"always-done",
|
|
87
|
-
"async-done",
|
|
88
|
-
"base",
|
|
89
|
-
"charlike-cli",
|
|
90
|
-
"dezalgo",
|
|
91
|
-
"global-modules",
|
|
92
|
-
"hela",
|
|
93
|
-
"once",
|
|
94
|
-
"prs-welcome-img",
|
|
95
|
-
"prs-welcome-url"
|
|
96
|
-
]
|
|
97
|
-
},
|
|
98
|
-
"release": {
|
|
99
|
-
"analyzeCommits": "simple-commit-message"
|
|
100
|
-
}
|
|
101
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2015-2017, Jon Schlinkert.
|
|
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,75 +0,0 @@
|
|
|
1
|
-
# global-modules [](https://www.npmjs.com/package/global-modules) [](https://npmjs.org/package/global-modules) [](https://npmjs.org/package/global-modules) [](https://travis-ci.org/jonschlinkert/global-modules)
|
|
2
|
-
|
|
3
|
-
> The directory used by npm for globally installed npm modules.
|
|
4
|
-
|
|
5
|
-
## Install
|
|
6
|
-
|
|
7
|
-
Install with [npm](https://www.npmjs.com/):
|
|
8
|
-
|
|
9
|
-
```sh
|
|
10
|
-
$ npm install --save global-modules
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Usage
|
|
14
|
-
|
|
15
|
-
```js
|
|
16
|
-
var globalModules = require('global-modules');
|
|
17
|
-
console.log(globalModules);
|
|
18
|
-
//=> '/usr/local/lib/node_modules'
|
|
19
|
-
```
|
|
20
|
-
_(Note that this path might be different based on OS or user defined configuration settings)_
|
|
21
|
-
|
|
22
|
-
## About
|
|
23
|
-
|
|
24
|
-
### Related projects
|
|
25
|
-
|
|
26
|
-
* [git-config-path](https://www.npmjs.com/package/git-config-path): Resolve the path to the user's local or global .gitconfig. | [homepage](https://github.com/jonschlinkert/git-config-path "Resolve the path to the user's local or global .gitconfig.")
|
|
27
|
-
* [global-prefix](https://www.npmjs.com/package/global-prefix): Get the npm global path prefix. | [homepage](https://github.com/jonschlinkert/global-prefix "Get the npm global path prefix.")
|
|
28
|
-
* [homedir-polyfill](https://www.npmjs.com/package/homedir-polyfill): Node.js os.homedir polyfill for older versions of node.js. | [homepage](https://github.com/doowb/homedir-polyfill "Node.js os.homedir polyfill for older versions of node.js.")
|
|
29
|
-
* [npm-paths](https://www.npmjs.com/package/npm-paths): Returns an array of unique "npm" directories based on the user's platform and environment. | [homepage](https://github.com/jonschlinkert/npm-paths "Returns an array of unique "npm" directories based on the user's platform and environment.")
|
|
30
|
-
|
|
31
|
-
### Contributing
|
|
32
|
-
|
|
33
|
-
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
|
|
34
|
-
|
|
35
|
-
### Contributors
|
|
36
|
-
|
|
37
|
-
| **Commits** | **Contributor** |
|
|
38
|
-
| --- | --- |
|
|
39
|
-
| 14 | [jonschlinkert](https://github.com/jonschlinkert) |
|
|
40
|
-
| 1 | [jason-chang](https://github.com/jason-chang) |
|
|
41
|
-
| 1 | [Kikobeats](https://github.com/Kikobeats) |
|
|
42
|
-
|
|
43
|
-
### Building docs
|
|
44
|
-
|
|
45
|
-
_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
|
|
46
|
-
|
|
47
|
-
To generate the readme, run the following command:
|
|
48
|
-
|
|
49
|
-
```sh
|
|
50
|
-
$ npm install -g verbose/verb#dev verb-generate-readme && verb
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
### Running tests
|
|
54
|
-
|
|
55
|
-
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
|
|
56
|
-
|
|
57
|
-
```sh
|
|
58
|
-
$ npm install && npm test
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
### Author
|
|
62
|
-
|
|
63
|
-
**Jon Schlinkert**
|
|
64
|
-
|
|
65
|
-
* [github/jonschlinkert](https://github.com/jonschlinkert)
|
|
66
|
-
* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)
|
|
67
|
-
|
|
68
|
-
### License
|
|
69
|
-
|
|
70
|
-
Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).
|
|
71
|
-
Released under the [MIT License](LICENSE).
|
|
72
|
-
|
|
73
|
-
***
|
|
74
|
-
|
|
75
|
-
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on June 28, 2017._
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* global-modules <https://github.com/jonschlinkert/global-modules>
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) 2015-2017 Jon Schlinkert.
|
|
5
|
-
* Licensed under the MIT license.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
'use strict';
|
|
9
|
-
|
|
10
|
-
var path = require('path');
|
|
11
|
-
var prefix = require('global-prefix');
|
|
12
|
-
var isWindows = require('is-windows');
|
|
13
|
-
var gm;
|
|
14
|
-
|
|
15
|
-
function getPath() {
|
|
16
|
-
if (isWindows()) {
|
|
17
|
-
return path.resolve(prefix, 'node_modules');
|
|
18
|
-
}
|
|
19
|
-
return path.resolve(prefix, 'lib/node_modules');
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Expose `global-modules` path
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
Object.defineProperty(module, 'exports', {
|
|
27
|
-
enumerable: true,
|
|
28
|
-
get: function() {
|
|
29
|
-
return gm || (gm = getPath());
|
|
30
|
-
}
|
|
31
|
-
});
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "global-modules",
|
|
3
|
-
"description": "The directory used by npm for globally installed npm modules.",
|
|
4
|
-
"version": "1.0.0",
|
|
5
|
-
"homepage": "https://github.com/jonschlinkert/global-modules",
|
|
6
|
-
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
|
|
7
|
-
"contributors": [
|
|
8
|
-
"JasonChang (https://packagist.org/packages/jason-chang)",
|
|
9
|
-
"Jon Schlinkert (http://twitter.com/jonschlinkert)",
|
|
10
|
-
"Kiko Beats (https://kikobeats.com)"
|
|
11
|
-
],
|
|
12
|
-
"repository": "jonschlinkert/global-modules",
|
|
13
|
-
"bugs": {
|
|
14
|
-
"url": "https://github.com/jonschlinkert/global-modules/issues"
|
|
15
|
-
},
|
|
16
|
-
"license": "MIT",
|
|
17
|
-
"files": [
|
|
18
|
-
"index.js"
|
|
19
|
-
],
|
|
20
|
-
"main": "index.js",
|
|
21
|
-
"engines": {
|
|
22
|
-
"node": ">=0.10.0"
|
|
23
|
-
},
|
|
24
|
-
"scripts": {
|
|
25
|
-
"test": "mocha"
|
|
26
|
-
},
|
|
27
|
-
"dependencies": {
|
|
28
|
-
"global-prefix": "^1.0.1",
|
|
29
|
-
"is-windows": "^1.0.1",
|
|
30
|
-
"resolve-dir": "^1.0.0"
|
|
31
|
-
},
|
|
32
|
-
"devDependencies": {
|
|
33
|
-
"gulp-format-md": "^0.1.12",
|
|
34
|
-
"mocha": "^3.4.2"
|
|
35
|
-
},
|
|
36
|
-
"keywords": [
|
|
37
|
-
"directory",
|
|
38
|
-
"dirname",
|
|
39
|
-
"global",
|
|
40
|
-
"module",
|
|
41
|
-
"modules",
|
|
42
|
-
"package",
|
|
43
|
-
"path",
|
|
44
|
-
"prefix",
|
|
45
|
-
"resolve"
|
|
46
|
-
],
|
|
47
|
-
"verb": {
|
|
48
|
-
"run": true,
|
|
49
|
-
"toc": false,
|
|
50
|
-
"layout": "default",
|
|
51
|
-
"tasks": [
|
|
52
|
-
"readme"
|
|
53
|
-
],
|
|
54
|
-
"plugins": [
|
|
55
|
-
"gulp-format-md"
|
|
56
|
-
],
|
|
57
|
-
"related": {
|
|
58
|
-
"list": [
|
|
59
|
-
"homedir-polyfill",
|
|
60
|
-
"git-config-path",
|
|
61
|
-
"global-prefix",
|
|
62
|
-
"npm-paths"
|
|
63
|
-
]
|
|
64
|
-
},
|
|
65
|
-
"reflinks": [
|
|
66
|
-
"verb"
|
|
67
|
-
],
|
|
68
|
-
"lint": {
|
|
69
|
-
"reflinks": true
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2015-2017, Jon Schlinkert.
|
|
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,78 +0,0 @@
|
|
|
1
|
-
# global-prefix [](https://www.npmjs.com/package/global-prefix) [](https://npmjs.org/package/global-prefix) [](https://npmjs.org/package/global-prefix) [](https://travis-ci.org/jonschlinkert/global-prefix) [](https://ci.appveyor.com/project/jonschlinkert/global-prefix)
|
|
2
|
-
|
|
3
|
-
> Get the npm global path prefix.
|
|
4
|
-
|
|
5
|
-
## Install
|
|
6
|
-
|
|
7
|
-
Install with [npm](https://www.npmjs.com/):
|
|
8
|
-
|
|
9
|
-
```sh
|
|
10
|
-
$ npm install --save global-prefix
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
This is partially based on the code used by npm internally to resolve the global prefix.
|
|
14
|
-
|
|
15
|
-
## Usage
|
|
16
|
-
|
|
17
|
-
```js
|
|
18
|
-
var prefix = require('global-prefix');
|
|
19
|
-
//=> '/usr/local' (this path will differ by system and user-defined config)
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
## About
|
|
23
|
-
|
|
24
|
-
### Related projects
|
|
25
|
-
|
|
26
|
-
* [global-modules](https://www.npmjs.com/package/global-modules): The directory used by npm for globally installed npm modules. | [homepage](https://github.com/jonschlinkert/global-modules "The directory used by npm for globally installed npm modules.")
|
|
27
|
-
* [global-paths](https://www.npmjs.com/package/global-paths): Returns an array of unique "global" directories based on the user's platform and environment. The… [more](https://github.com/jonschlinkert/global-paths) | [homepage](https://github.com/jonschlinkert/global-paths "Returns an array of unique "global" directories based on the user's platform and environment. The resulting paths can be used for doing lookups for generators or other globally installed npm packages. Node.js / JavaScript.")
|
|
28
|
-
|
|
29
|
-
### Contributing
|
|
30
|
-
|
|
31
|
-
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
|
|
32
|
-
|
|
33
|
-
### Contributors
|
|
34
|
-
|
|
35
|
-
| **Commits** | **Contributor** |
|
|
36
|
-
| --- | --- |
|
|
37
|
-
| 16 | [jonschlinkert](https://github.com/jonschlinkert) |
|
|
38
|
-
| 15 | [doowb](https://github.com/doowb) |
|
|
39
|
-
| 1 | [rmbaad](https://github.com/rmbaad) |
|
|
40
|
-
| 1 | [avengerpenguin](https://github.com/avengerpenguin) |
|
|
41
|
-
| 1 | [jason-chang](https://github.com/jason-chang) |
|
|
42
|
-
| 1 | [jorrit](https://github.com/jorrit) |
|
|
43
|
-
| 1 | [mathiasvr](https://github.com/mathiasvr) |
|
|
44
|
-
| 1 | [tunnckoCore](https://github.com/tunnckoCore) |
|
|
45
|
-
|
|
46
|
-
### Building docs
|
|
47
|
-
|
|
48
|
-
_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
|
|
49
|
-
|
|
50
|
-
To generate the readme, run the following command:
|
|
51
|
-
|
|
52
|
-
```sh
|
|
53
|
-
$ npm install -g verbose/verb#dev verb-generate-readme && verb
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
### Running tests
|
|
57
|
-
|
|
58
|
-
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
|
|
59
|
-
|
|
60
|
-
```sh
|
|
61
|
-
$ npm install && npm test
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
### Author
|
|
65
|
-
|
|
66
|
-
**Jon Schlinkert**
|
|
67
|
-
|
|
68
|
-
* [github/jonschlinkert](https://github.com/jonschlinkert)
|
|
69
|
-
* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)
|
|
70
|
-
|
|
71
|
-
### License
|
|
72
|
-
|
|
73
|
-
Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).
|
|
74
|
-
Released under the [MIT License](LICENSE).
|
|
75
|
-
|
|
76
|
-
***
|
|
77
|
-
|
|
78
|
-
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on June 28, 2017._
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* global-prefix <https://github.com/jonschlinkert/global-prefix>
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) 2015-2017 Jon Schlinkert.
|
|
5
|
-
* Licensed under the MIT license.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
'use strict';
|
|
9
|
-
|
|
10
|
-
var fs = require('fs');
|
|
11
|
-
var path = require('path');
|
|
12
|
-
var expand = require('expand-tilde');
|
|
13
|
-
var homedir = require('homedir-polyfill');
|
|
14
|
-
var ini = require('ini');
|
|
15
|
-
var prefix;
|
|
16
|
-
|
|
17
|
-
function getPrefix() {
|
|
18
|
-
if (process.env.PREFIX) {
|
|
19
|
-
prefix = process.env.PREFIX;
|
|
20
|
-
} else {
|
|
21
|
-
// Start by checking if the global prefix is set by the user
|
|
22
|
-
var home = homedir();
|
|
23
|
-
if (home) {
|
|
24
|
-
// homedir() returns undefined if $HOME not set; path.resolve requires strings
|
|
25
|
-
var userConfig = path.resolve(home, '.npmrc');
|
|
26
|
-
prefix = tryConfigPath(userConfig);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
if (!prefix) {
|
|
30
|
-
// Otherwise find the path of npm
|
|
31
|
-
var npm = tryNpmPath();
|
|
32
|
-
if (npm) {
|
|
33
|
-
// Check the built-in npm config file
|
|
34
|
-
var builtinConfig = path.resolve(npm, '..', '..', 'npmrc');
|
|
35
|
-
prefix = tryConfigPath(builtinConfig);
|
|
36
|
-
|
|
37
|
-
if (prefix) {
|
|
38
|
-
// Now the global npm config can also be checked.
|
|
39
|
-
var globalConfig = path.resolve(prefix, 'etc', 'npmrc');
|
|
40
|
-
prefix = tryConfigPath(globalConfig) || prefix;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
if (!prefix) fallback();
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
if (prefix) {
|
|
49
|
-
return expand(prefix);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
function fallback() {
|
|
54
|
-
var isWindows = require('is-windows');
|
|
55
|
-
if (isWindows()) {
|
|
56
|
-
// c:\node\node.exe --> prefix=c:\node\
|
|
57
|
-
prefix = process.env.APPDATA
|
|
58
|
-
? path.join(process.env.APPDATA, 'npm')
|
|
59
|
-
: path.dirname(process.execPath);
|
|
60
|
-
} else {
|
|
61
|
-
// /usr/local/bin/node --> prefix=/usr/local
|
|
62
|
-
prefix = path.dirname(path.dirname(process.execPath));
|
|
63
|
-
|
|
64
|
-
// destdir only is respected on Unix
|
|
65
|
-
if (process.env.DESTDIR) {
|
|
66
|
-
prefix = path.join(process.env.DESTDIR, prefix);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
function tryNpmPath() {
|
|
72
|
-
try {
|
|
73
|
-
return fs.realpathSync(require('which').sync('npm'));
|
|
74
|
-
} catch (err) {}
|
|
75
|
-
return null;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
function tryConfigPath(configPath) {
|
|
79
|
-
try {
|
|
80
|
-
var data = fs.readFileSync(configPath, 'utf-8');
|
|
81
|
-
var config = ini.parse(data);
|
|
82
|
-
if (config.prefix) return config.prefix;
|
|
83
|
-
} catch (err) {}
|
|
84
|
-
return null;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Expose `prefix`
|
|
89
|
-
*/
|
|
90
|
-
|
|
91
|
-
Object.defineProperty(module, 'exports', {
|
|
92
|
-
enumerable: true,
|
|
93
|
-
get: function() {
|
|
94
|
-
return prefix || (prefix = getPrefix());
|
|
95
|
-
}
|
|
96
|
-
});
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
# Changes
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## 1.3.1
|
|
5
|
-
|
|
6
|
-
* update deps
|
|
7
|
-
* update travis
|
|
8
|
-
|
|
9
|
-
## v1.3.0
|
|
10
|
-
|
|
11
|
-
* Add nothrow option to which.sync
|
|
12
|
-
* update tap
|
|
13
|
-
|
|
14
|
-
## v1.2.14
|
|
15
|
-
|
|
16
|
-
* appveyor: drop node 5 and 0.x
|
|
17
|
-
* travis-ci: add node 6, drop 0.x
|
|
18
|
-
|
|
19
|
-
## v1.2.13
|
|
20
|
-
|
|
21
|
-
* test: Pass missing option to pass on windows
|
|
22
|
-
* update tap
|
|
23
|
-
* update isexe to 2.0.0
|
|
24
|
-
* neveragain.tech pledge request
|
|
25
|
-
|
|
26
|
-
## v1.2.12
|
|
27
|
-
|
|
28
|
-
* Removed unused require
|
|
29
|
-
|
|
30
|
-
## v1.2.11
|
|
31
|
-
|
|
32
|
-
* Prevent changelog script from being included in package
|
|
33
|
-
|
|
34
|
-
## v1.2.10
|
|
35
|
-
|
|
36
|
-
* Use env.PATH only, not env.Path
|
|
37
|
-
|
|
38
|
-
## v1.2.9
|
|
39
|
-
|
|
40
|
-
* fix for paths starting with ../
|
|
41
|
-
* Remove unused `is-absolute` module
|
|
42
|
-
|
|
43
|
-
## v1.2.8
|
|
44
|
-
|
|
45
|
-
* bullet items in changelog that contain (but don't start with) #
|
|
46
|
-
|
|
47
|
-
## v1.2.7
|
|
48
|
-
|
|
49
|
-
* strip 'update changelog' changelog entries out of changelog
|
|
50
|
-
|
|
51
|
-
## v1.2.6
|
|
52
|
-
|
|
53
|
-
* make the changelog bulleted
|
|
54
|
-
|
|
55
|
-
## v1.2.5
|
|
56
|
-
|
|
57
|
-
* make a changelog, and keep it up to date
|
|
58
|
-
* don't include tests in package
|
|
59
|
-
* Properly handle relative-path executables
|
|
60
|
-
* appveyor
|
|
61
|
-
* Attach error code to Not Found error
|
|
62
|
-
* Make tests pass on Windows
|
|
63
|
-
|
|
64
|
-
## v1.2.4
|
|
65
|
-
|
|
66
|
-
* Fix typo
|
|
67
|
-
|
|
68
|
-
## v1.2.3
|
|
69
|
-
|
|
70
|
-
* update isexe, fix regression in pathExt handling
|
|
71
|
-
|
|
72
|
-
## v1.2.2
|
|
73
|
-
|
|
74
|
-
* update deps, use isexe module, test windows
|
|
75
|
-
|
|
76
|
-
## v1.2.1
|
|
77
|
-
|
|
78
|
-
* Sometimes windows PATH entries are quoted
|
|
79
|
-
* Fixed a bug in the check for group and user mode bits. This bug was introduced during refactoring for supporting strict mode.
|
|
80
|
-
* doc cli
|
|
81
|
-
|
|
82
|
-
## v1.2.0
|
|
83
|
-
|
|
84
|
-
* Add support for opt.all and -as cli flags
|
|
85
|
-
* test the bin
|
|
86
|
-
* update travis
|
|
87
|
-
* Allow checking for multiple programs in bin/which
|
|
88
|
-
* tap 2
|
|
89
|
-
|
|
90
|
-
## v1.1.2
|
|
91
|
-
|
|
92
|
-
* travis
|
|
93
|
-
* Refactored and fixed undefined error on Windows
|
|
94
|
-
* Support strict mode
|
|
95
|
-
|
|
96
|
-
## v1.1.1
|
|
97
|
-
|
|
98
|
-
* test +g exes against secondary groups, if available
|
|
99
|
-
* Use windows exe semantics on cygwin & msys
|
|
100
|
-
* cwd should be first in path on win32, not last
|
|
101
|
-
* Handle lower-case 'env.Path' on Windows
|
|
102
|
-
* Update docs
|
|
103
|
-
* use single-quotes
|
|
104
|
-
|
|
105
|
-
## v1.1.0
|
|
106
|
-
|
|
107
|
-
* Add tests, depend on is-absolute
|
|
108
|
-
|
|
109
|
-
## v1.0.9
|
|
110
|
-
|
|
111
|
-
* which.js: root is allowed to execute files owned by anyone
|
|
112
|
-
|
|
113
|
-
## v1.0.8
|
|
114
|
-
|
|
115
|
-
* don't use graceful-fs
|
|
116
|
-
|
|
117
|
-
## v1.0.7
|
|
118
|
-
|
|
119
|
-
* add license to package.json
|
|
120
|
-
|
|
121
|
-
## v1.0.6
|
|
122
|
-
|
|
123
|
-
* isc license
|
|
124
|
-
|
|
125
|
-
## 1.0.5
|
|
126
|
-
|
|
127
|
-
* Awful typo
|
|
128
|
-
|
|
129
|
-
## 1.0.4
|
|
130
|
-
|
|
131
|
-
* Test for path absoluteness properly
|
|
132
|
-
* win: Allow '' as a pathext if cmd has a . in it
|
|
133
|
-
|
|
134
|
-
## 1.0.3
|
|
135
|
-
|
|
136
|
-
* Remove references to execPath
|
|
137
|
-
* Make `which.sync()` work on Windows by honoring the PATHEXT variable.
|
|
138
|
-
* Make `isExe()` always return true on Windows.
|
|
139
|
-
* MIT
|
|
140
|
-
|
|
141
|
-
## 1.0.2
|
|
142
|
-
|
|
143
|
-
* Only files can be exes
|
|
144
|
-
|
|
145
|
-
## 1.0.1
|
|
146
|
-
|
|
147
|
-
* Respect the PATHEXT env for win32 support
|
|
148
|
-
* should 0755 the bin
|
|
149
|
-
* binary
|
|
150
|
-
* guts
|
|
151
|
-
* package
|
|
152
|
-
* 1st
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
The ISC License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Isaac Z. Schlueter and Contributors
|
|
4
|
-
|
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
-
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
-
copyright notice and this permission notice appear in all copies.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
10
|
-
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
11
|
-
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
12
|
-
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
13
|
-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
14
|
-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
15
|
-
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|