{"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":{"integrity":"sha512-zFa12V4OLtT5XUX/Q4VLvTfBf+Ok0SPc1FNGM/z9ctUdiU618qwKpWnd0CHs3+RqROfyEg/DhuHbMWYqcgljEw==","shasum":"a2a79df4af2ca3f49bf77ef9ddacd322dad19255","tarball":"http://registry-npm.ywwl.com/resolve-global/download/resolve-global-1.0.0.tgz","fileCount":5,"unpackedSize":4343,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJctK5oCRA9TVsSAnZWagAAQvcP/3Y0eoNw/aSM6bd/C+6C\ncVhyeqOd9HVfcpKMHW6EOg4iHihlNyWulkMBIKLZtbMhH0cnySc14QH4J3iD\n0Z1D/Ltib/udB/N16iR7zNxgDhlrQ0RqlInSS16AYW8T3g9IMF5DBf3KwKFI\nfada1u9dOSqgMHEUiY0PDtnAlFIUNO4/9kkhBSKe0UjiM95StcvK5xpTbR33\nreXd2W2nyshiXVwrQQns4o/g96WOCspJRYJORzW6Ojpd/J7QCPdE/Nj08IBs\n/HujZ+N3l8moO4EsEnrDsCMLDsHY89AEx6eJUwNiJNcFeAvdtKDhqxnl6YuU\nDqTQzb3MyzbCJSXWzC51rY76E5ZKM/XCiybLGqjgu9E2pXer+ojjSSNwSm6y\nAXVy9nKfHZcGRN7rNQGigd9LgQ8pIorgQlvQKdGVGfyYYscDluPo85xx+u+K\nDxdIiCKRnHwmEOwxBSSWwUPPV/9o2gG5iUi2kWYkMf8fwHsv9fgGWllZUGMW\nBpTQiMO09e6VX44FinZChXTAFVfouOaWhUEc9IrROhpySoTSjer970Le3kuO\nfzG1uwz/nRTrV5gWENAW4yORT61+ctuP5W7UODgs01RhcLSgZOC6yIJ1PIy+\nsJGD9X/H0oQlARbPLFaDYNOK9sH103QxUROSAhvkKctZkTZK8XEVC/4ee3uI\n650Y\r\n=UbMr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC5Xv2HJ5faPaDDxhBs/2NnVavQzKyV4nW5aER+dP/YSgIhAJBCGRR6XhsonLeRgTANrpBq3iUvjyRioyhlO2aS1+z7"}],"size":1912,"noattachment":false,"key":"/resolve-global/-/resolve-global-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resolve-global_1.0.0_1555344999661_0.9415713619696922"},"_hasShrinkwrap":false,"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":1555344999774,"_cnpm_publish_time":1555344999774,"dist-tags":{"latest":"2.0.0"}}