{"name":"global-dirs","version":"2.1.0","description":"Get the directory of globally installed packages and binaries","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/global-dirs.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["global","prefix","path","paths","npm","yarn","node","modules","node-modules","package","packages","binary","binaries","bin","directory","directories","npmrc","rc","config","root","resolve"],"dependencies":{"ini":"1.3.7"},"devDependencies":{"ava":"^2.4.0","execa":"^3.2.0","import-fresh":"^3.1.0","tsd":"^0.10.0","xo":"^0.25.3"},"gitHead":"055d2b62c87c9e1dcfe5972da8d9c4be291e50f3","bugs":{"url":"https://github.com/sindresorhus/global-dirs/issues"},"homepage":"https://github.com/sindresorhus/global-dirs#readme","_id":"global-dirs@2.1.0","_nodeVersion":"10.22.1","_npmVersion":"6.14.9","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-MG6kdOUh/xBnyo9cJFeIKkLEc1AyFq42QTU4XiX51i2NEdxLxLWXIjEjmqKeSuKR7pAZjTqUVoT2b2huxVLgYQ==","shasum":"e9046a49c806ff04d6c1825e196c8f0091e8df4d","tarball":"http://registry-npm.ywwl.com/global-dirs/download/global-dirs-2.1.0.tgz","fileCount":5,"unpackedSize":8206,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf13rMCRA9TVsSAnZWagAAf00P/jGOWav0uwzJh10Fz5Cy\nT+r4cApOlw8Oonu9+dzDDZtTHpgElhsQbVNDg8r3rlGhiOSyZ0msRPRAdmY5\n+acrEs/JNEO0IC0TXNlCC7+8xp+Qky5Na0xl1BURCKoAWtQ61fvYZ91lva6l\nYN/3jbzqThZxl0fQ+b1bdjr5zZ6LEsZDq9NozLFTYnB781oVjjMNnHUttPmt\n1mCG6btD+HL6Hytv+pLQHBwAjtEpeMJjUQum8Y8WG2r0o3VHL/hAWvBH0+xC\nNs34XoRcKRM1o+T8otxGOfJB5GUrGkENmwdF9P4rTkG0iWFQ3fSiqxI8Ri2Z\nZCFG+Lwgdykr8deRHLS4yKODntimalhSIBwT71ihtzxOUHaEXlOF4+fV2poH\nEEkVjL27CvfPTQJnEOT0O7zgNzvDfnvn1WfLfTgJJZTmmL4brf5KKKfcLr7D\nAjdeTb6PwUwMlPVpCV6KrtxZ/orItDzV6iCDYmiAnXVTFSZWVUMYoHouLKm7\nuoHPpASvLxRUVhHiEG8R78lFd6zpDXAq6x+vxXL9CW6yr3x54yzSqonnsYGy\nkP/DaTpjIYk0h07jIHwGgbLYvsiaf5d8nrgosoN+ooakHbqEBYctf46UfbeE\n+iStwfN3+u/bHMaBlMc/Mfpft/jcVVF6IQFmHVwCFeHay+EF9GuwlRBdMPzM\nZR0U\r\n=S64n\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDt377CCCar78LThzsTh5cNPDGHjy3kp3MIb737bG4Y5QIhAMRgHe/xy7mxn3mb6hhVK88MaTAR0EhmEtxk4L90HR9b"}],"size":3034,"noattachment":false,"key":"/global-dirs/-/global-dirs-2.1.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/global-dirs_2.1.0_1607957195877_0.6198426020400563"},"_hasShrinkwrap":false,"readme":"# global-dirs\n\n> Get the directory of globally installed packages and binaries\n\nUses the same resolution logic as `npm` and `yarn`.\n\n## Install\n\n```\n$ npm install global-dirs\n```\n\n## Usage\n\n```js\nconst globalDirectories = require('global-dirs');\n\nconsole.log(globalDirectories.npm.prefix);\n//=> '/usr/local'\n\nconsole.log(globalDirectories.npm.packages);\n//=> '/usr/local/lib/node_modules'\n\nconsole.log(globalDirectories.npm.binaries);\n//=> '/usr/local/bin'\n\nconsole.log(globalDirectories.yarn.packages);\n//=> '/Users/sindresorhus/.config/yarn/global/node_modules'\n```\n\n## API\n\n### globalDirectories\n\n#### npm\n#### yarn\n\n##### packages\n\nDirectory with globally installed packages.\n\nEquivalent to `npm root --global`.\n\n##### binaries\n\nDirectory with globally installed binaries.\n\nEquivalent to `npm bin --global`.\n\n##### prefix\n\nDirectory with directories for packages and binaries. You probably want either of the above.\n\nEquivalent to `npm prefix --global`.\n\n## Related\n\n- [import-global](https://github.com/sindresorhus/import-global) - Import a globally installed module\n- [resolve-global](https://github.com/sindresorhus/resolve-global) - Resolve the path of a globally installed module\n- [is-installed-globally](https://github.com/sindresorhus/is-installed-globally) - Check if your package was installed globally\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-global-dirs?utm_source=npm-global-dirs&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n","publish_time":1607957196047,"_cnpm_publish_time":1607957196047,"dist-tags":{"latest":"4.0.0"}}