mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
88 lines
3.3 KiB
88 lines
3.3 KiB
{
|
|
"_args": [
|
|
[
|
|
{
|
|
"raw": "which@1.2.14",
|
|
"scope": null,
|
|
"escapedName": "which",
|
|
"name": "which",
|
|
"rawSpec": "1.2.14",
|
|
"spec": "1.2.14",
|
|
"type": "version"
|
|
},
|
|
"/Users/rebecca/code/npm"
|
|
]
|
|
],
|
|
"_from": "which@1.2.14",
|
|
"_hasShrinkwrap": false,
|
|
"_id": "which@1.2.14",
|
|
"_location": "/which",
|
|
"_phantomChildren": {},
|
|
"_requested": {
|
|
"raw": "which@1.2.14",
|
|
"scope": null,
|
|
"escapedName": "which",
|
|
"name": "which",
|
|
"rawSpec": "1.2.14",
|
|
"spec": "1.2.14",
|
|
"type": "version"
|
|
},
|
|
"_requiredBy": [
|
|
"#USER",
|
|
"/",
|
|
"/node-gyp",
|
|
"/tap/foreground-child/cross-spawn",
|
|
"/update-notifier/boxen/term-size/execa/cross-spawn-async"
|
|
],
|
|
"_resolved": "https://registry.npmjs.org/which/-/which-1.2.14.tgz",
|
|
"_shasum": "9a87c4378f03e827cecaf1acdf56c736c01c14e5",
|
|
"_shrinkwrap": null,
|
|
"_spec": "which@1.2.14",
|
|
"_where": "/Users/rebecca/code/npm",
|
|
"author": {
|
|
"name": "Isaac Z. Schlueter",
|
|
"email": "i@izs.me",
|
|
"url": "http://blog.izs.me"
|
|
},
|
|
"bin": {
|
|
"which": "./bin/which"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/isaacs/node-which/issues"
|
|
},
|
|
"dependencies": {
|
|
"isexe": "^2.0.0"
|
|
},
|
|
"description": "Like which(1) unix command. Find the first instance of an executable in the PATH.",
|
|
"devDependencies": {
|
|
"mkdirp": "^0.5.0",
|
|
"rimraf": "^2.3.3",
|
|
"tap": "^10.3.0"
|
|
},
|
|
"directories": {},
|
|
"dist": {
|
|
"shasum": "9a87c4378f03e827cecaf1acdf56c736c01c14e5",
|
|
"tarball": "https://registry.npmjs.org/which/-/which-1.2.14.tgz"
|
|
},
|
|
"files": [
|
|
"which.js",
|
|
"bin/which"
|
|
],
|
|
"homepage": "https://github.com/isaacs/node-which#readme",
|
|
"license": "ISC",
|
|
"main": "which.js",
|
|
"name": "which",
|
|
"optionalDependencies": {},
|
|
"readme": "# which\n\nLike the unix `which` utility.\n\nFinds the first instance of a specified executable in the PATH\nenvironment variable. Does not cache the results, so `hash -r` is not\nneeded when the PATH changes.\n\n## USAGE\n\n```javascript\nvar which = require('which')\n\n// async usage\nwhich('node', function (er, resolvedPath) {\n // er is returned if no \"node\" is found on the PATH\n // if it is found, then the absolute path to the exec is returned\n})\n\n// sync usage\n// throws if not found\nvar resolved = which.sync('node')\n\n// Pass options to override the PATH and PATHEXT environment vars.\nwhich('node', { path: someOtherPath }, function (er, resolved) {\n if (er)\n throw er\n console.log('found at %j', resolved)\n})\n```\n\n## CLI USAGE\n\nSame as the BSD `which(1)` binary.\n\n```\nusage: which [-as] program ...\n```\n\n## OPTIONS\n\nYou may pass an options object as the second argument.\n\n- `path`: Use instead of the `PATH` environment variable.\n- `pathExt`: Use instead of the `PATHEXT` environment variable.\n- `all`: Return all matches, instead of just the first one. Note that\n this means the function returns an array of strings instead of a\n single string.\n",
|
|
"readmeFilename": "README.md",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/isaacs/node-which.git"
|
|
},
|
|
"scripts": {
|
|
"changelog": "bash gen-changelog.sh",
|
|
"postversion": "npm run changelog && git add CHANGELOG.md && git commit -m 'update changelog - '${npm_package_version}",
|
|
"test": "tap test/*.js --cov"
|
|
},
|
|
"version": "1.2.14"
|
|
}
|
|
|