{"maintainers":[{"name":"dev","email":"sindresorhus@gmail.com"}],"keywords":["resolve","global","package","module","globally","path","npm","yarn","packages","require"],"dist-tags":{"latest":"2.0.0"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"description":"Resolve the path of a globally installed module","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","repository":{"type":"git","url":"git+https://github.com/sindresorhus/resolve-global.git"},"users":{"flumpus-dev":true},"bugs":{"url":"https://github.com/sindresorhus/resolve-global/issues"},"license":"MIT","versions":{"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":"dev","email":"sindresorhus@gmail.com"},"dist":{"shasum":"8fb02cfd5b7db20118e886311f15af95bd15fbd9","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/resolve-global/-/resolve-global-0.1.0.tgz","integrity":"sha512-lnKV4jmhQ+FIMjYJjuiDWby1EvafgWxbN0n4IjGEK/IJeiRyVlU8Xe1AHs2aEn+AI6+1JAsEHXb6gWWhHWHMpw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHgI4DfShQNrijp3g9c75Wf7euO1xi7Kb1Vnsb7nip2JAiBZpU17I+11+yBacJOrqOfSVg6W8bZCkZajYlaWeknkFg=="}]},"maintainers":[{"name":"dev","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resolve-global-0.1.0.tgz_1498433411967_0.031970058334991336"},"directories":{}},"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":"dev","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-zFa12V4OLtT5XUX/Q4VLvTfBf+Ok0SPc1FNGM/z9ctUdiU618qwKpWnd0CHs3+RqROfyEg/DhuHbMWYqcgljEw==","shasum":"a2a79df4af2ca3f49bf77ef9ddacd322dad19255","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/resolve-global/-/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"}]},"maintainers":[{"name":"dev","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resolve-global_1.0.0_1555344999661_0.9415713619696922"},"_hasShrinkwrap":false},"2.0.0":{"name":"resolve-global","version":"2.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"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && ava && tsd"},"keywords":["resolve","global","package","module","globally","path","npm","yarn","packages","require"],"dependencies":{"global-directory":"^4.0.1"},"devDependencies":{"ava":"^5.3.1","execa":"^8.0.1","tsd":"^0.29.0","xo":"^0.56.0"},"ava":{"timeout":"10m"},"types":"./index.d.ts","gitHead":"36b992f418258a94c091a3c13a012b08d805a7bf","bugs":{"url":"https://github.com/sindresorhus/resolve-global/issues"},"homepage":"https://github.com/sindresorhus/resolve-global#readme","_id":"resolve-global@2.0.0","_nodeVersion":"20.9.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-gnAQ0Q/KkupGkuiMyX4L0GaBV8iFwlmoXsMtOz+DFTaKmHhOO/dSlP1RMKhpvHv/dh6K/IQkowGJBqUG0NfBUw==","shasum":"2ff55640800bf3692f089b6008357f75e1a27e54","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/resolve-global/-/resolve-global-2.0.0.tgz","fileCount":5,"unpackedSize":4845,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEl1aUE5/ByW0/QrjF29cyMAelYfhwdwCGbiDQdMDmvlAiEAg3T28r+NK9L82ZYsAdHWDgH6Uf+CIJLu91TR0bpM1ho="}]},"_npmUser":{"name":"dev","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"dev","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resolve-global_2.0.0_1699305360558_0.08510973393854404"},"_hasShrinkwrap":false}},"name":"resolve-global","time":{"modified":"2023-11-06T21:16:00.893Z","created":"2017-06-25T23:30:13.018Z","0.1.0":"2017-06-25T23:30:13.018Z","1.0.0":"2019-04-15T16:16:39.774Z","2.0.0":"2023-11-06T21:16:00.715Z"},"readmeFilename":"readme.md","homepage":"https://github.com/sindresorhus/resolve-global#readme"}