{"_id":"resolve-global","_rev":"170044","name":"resolve-global","description":"Resolve the path of a globally installed module","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2022-10-18T09:54:24.000Z","created":"2017-06-25T23:30:13.018Z","1.0.0":"2019-04-15T16:16:39.774Z","0.1.0":"2017-06-25T23:30:13.018Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/resolve-global.git"},"versions":{"1.0.0":{"name":"resolve-global","version":"1.0.0","description":"Resolve the path of a globally installed module","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/resolve-global.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["resolve","global","package","module","globally","path","npm","yarn","packages","require"],"dependencies":{"global-dirs":"^0.1.1"},"devDependencies":{"ava":"^1.4.1","execa":"^1.0.0","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"85501d94ebee85a00236c4477a63e978c09198da","bugs":{"url":"https://github.com/sindresorhus/resolve-global/issues"},"homepage":"https://github.com/sindresorhus/resolve-global#readme","_id":"resolve-global@1.0.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"a2a79df4af2ca3f49bf77ef9ddacd322dad19255","size":1912,"noattachment":false,"key":"/resolve-global/-/resolve-global-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/resolve-global/download/resolve-global-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resolve-global_1.0.0_1555344999661_0.9415713619696922"},"_hasShrinkwrap":false,"publish_time":1555344999774,"_cnpm_publish_time":1555344999774},"0.1.0":{"name":"resolve-global","version":"0.1.0","description":"Resolve the path of a globally installed module","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/resolve-global.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["resolve","global","package","module","globally","path","npm","yarn","packages","require"],"dependencies":{"global-dirs":"^0.1.0"},"devDependencies":{"ava":"*","execa":"^0.7.0","xo":"*"},"gitHead":"74a951cac6fa88fda8d45147eb634198b5aeff7a","bugs":{"url":"https://github.com/sindresorhus/resolve-global/issues"},"homepage":"https://github.com/sindresorhus/resolve-global#readme","_id":"resolve-global@0.1.0","_shasum":"8fb02cfd5b7db20118e886311f15af95bd15fbd9","_from":".","_npmVersion":"4.6.1","_nodeVersion":"8.0.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"8fb02cfd5b7db20118e886311f15af95bd15fbd9","size":1744,"noattachment":false,"key":"/resolve-global/-/resolve-global-0.1.0.tgz","tarball":"http://name.csiicloud.com:7001/resolve-global/download/resolve-global-0.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resolve-global-0.1.0.tgz_1498433411967_0.031970058334991336"},"directories":{},"publish_time":1498433413018,"_hasShrinkwrap":false,"_cnpm_publish_time":1498433413018}},"readme":"# resolve-global [![Build Status](https://travis-ci.org/sindresorhus/resolve-global.svg?branch=master)](https://travis-ci.org/sindresorhus/resolve-global)\n\n> Resolve the path of a globally installed module\n\n\n## Install\n\n```\n$ npm install resolve-global\n```\n\n\n## Usage\n\n```\n$ npm install --global cat-names\n```\n\n```js\nconst resolveGlobal = require('resolve-global');\n\nconsole.log(resolveGlobal('cat-names'));\n//=> '/usr/local/lib/node_modules/cat-names'\n```\n\n\n## API\n\n### resolveGlobal(moduleId)\n\nThrows if the module can't be found.\n\n### resolveGlobal.silent(moduleId)\n\nReturns `undefined` instead of throwing if the module can't be found.\n\n#### moduleId\n\nType: `string`\n\nWhat you would use in `require()`.\n\n\n## Related\n\n- [import-global](https://github.com/sindresorhus/import-global) - Import a globally installed module\n- [resolve-from](https://github.com/sindresorhus/resolve-from) - Resolve the path of a module from a given path\n- [import-from](https://github.com/sindresorhus/import-from) - Import a module from a given path\n- [is-installed-globally](https://github.com/sindresorhus/is-installed-globally) - Check if your package was installed globally\n- [global-dirs](https://github.com/sindresorhus/global-dirs) - Get the directory of globally installed packages and binaries\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n","_attachments":{},"homepage":"https://github.com/sindresorhus/resolve-global#readme","bugs":{"url":"https://github.com/sindresorhus/resolve-global/issues"},"license":"MIT"}