{"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://registry-npm.ywwl.com/resolve-global/download/resolve-global-2.0.0.tgz","fileCount":5,"unpackedSize":4845,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEl1aUE5/ByW0/QrjF29cyMAelYfhwdwCGbiDQdMDmvlAiEAg3T28r+NK9L82ZYsAdHWDgH6Uf+CIJLu91TR0bpM1ho="}],"size":1995,"noattachment":false,"key":"/resolve-global/-/resolve-global-2.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resolve-global_2.0.0_1699305360558_0.08510973393854404"},"_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":1699305360715,"_cnpm_publish_time":1699305360715,"dist-tags":{"latest":"2.0.0"}}