{"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","tarball":"http://registry-npm.ywwl.com/resolve-global/download/resolve-global-0.1.0.tgz","integrity":"sha512-lnKV4jmhQ+FIMjYJjuiDWby1EvafgWxbN0n4IjGEK/IJeiRyVlU8Xe1AHs2aEn+AI6+1JAsEHXb6gWWhHWHMpw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHgI4DfShQNrijp3g9c75Wf7euO1xi7Kb1Vnsb7nip2JAiBZpU17I+11+yBacJOrqOfSVg6W8bZCkZajYlaWeknkFg=="}],"size":1744,"noattachment":false,"key":"/resolve-global/-/resolve-global-0.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resolve-global-0.1.0.tgz_1498433411967_0.031970058334991336"},"directories":{},"readme":"# resolve-global\n\n> Resolve the path of a globally installed module\n\n## Install\n\n```sh\nnpm install resolve-global\n```\n\n## Usage\n\n```sh\nnpm install --global cat-names\n```\n\n```js\nimport {resolveGlobal} from 'resolve-global';\n\nconsole.log(resolveGlobal('cat-names'));\n//=> '/usr/local/lib/node_modules/cat-names'\n```\n\n## API\n\n### resolveGlobal(moduleName)\n\nThrows if the module cannot be found.\n\n### resolveGlobalSilent(moduleName)\n\nReturns `undefined` instead of throwing if the module cannot be found.\n\n#### moduleName\n\nType: `string`\n\nWhat you would use in [`import()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import).\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-directory](https://github.com/sindresorhus/global-directory) - Get the directory of globally installed packages and binaries\n","publish_time":1498433413018,"_cnpm_publish_time":1498433413018,"dist-tags":{"latest":"2.0.0"}}