{ "author": { "name": "Isaac Z. Schlueter", "email": "i@izs.me", "url": "http://blog.izs.me" }, "name": "which", "description": "Like which(1) unix command. Find the first instance of an executable in the PATH.", "version": "1.2.0", "repository": { "type": "git", "url": "git://github.com/isaacs/node-which.git" }, "main": "which.js", "bin": { "which": "./bin/which" }, "license": "ISC", "dependencies": { "is-absolute": "^0.1.7" }, "devDependencies": { "mkdirp": "^0.5.0", "rimraf": "^2.3.3", "tap": "^2.0.0" }, "scripts": { "test": "tap test/*.js" }, "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## 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", "bugs": { "url": "https://github.com/isaacs/node-which/issues" }, "homepage": "https://github.com/isaacs/node-which#readme", "_id": "which@1.2.0", "_shasum": "a5c8df5abc792f6ce9652c8d9ca8f3a91b77e59d", "_resolved": "https://registry.npmjs.org/which/-/which-1.2.0.tgz", "_from": "which@>=1.0.8 <2.0.0" }