{"name":"global-dirs","version":"2.0.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"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"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.5"},"devDependencies":{"ava":"^2.4.0","execa":"^2.0.4","import-fresh":"^3.1.0","tsd":"^0.7.4","xo":"^0.24.0"},"gitHead":"d6c86fc94680042cb3fa1f0fb5aefbd183f850be","bugs":{"url":"https://github.com/sindresorhus/global-dirs/issues"},"homepage":"https://github.com/sindresorhus/global-dirs#readme","_id":"global-dirs@2.0.0","_nodeVersion":"8.16.1","_npmVersion":"6.11.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-Ny6SRz+NMemW6S1GxUdnZFH2UhE1Zybf5lDQHhOHI98KkHUZsCddObyhW1Iyt6mFmcD7I0lgTLU9PcUpIhIgSw==","shasum":"fece111e32f8fad04ff73186362bb32ddeaac2e8","tarball":"http://registry-npm.ywwl.com/global-dirs/download/global-dirs-2.0.0.tgz","fileCount":5,"unpackedSize":8248,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdgH9vCRA9TVsSAnZWagAAXUQQAIXFBfcMfGJz1po6uHA0\nhjvrTI8EHB9jOF+JaSr0TCpNS5BY9K/89GXQ9aH3LkiPpQtfoBzj0fg+N5Bq\nH+VhrvuBCit81wYBJpBZT14TuVos+UHyl4W86nTVsDMRhGPH09TW6Jd8LFhW\n3LImcLECQLRaGuWeE5NAn013kXdritrCGaDUOf6ee/HMembpvNVklXg64zsA\nlDJsuBkj/K/LBRlsHRc1Dcl8npTYw0r8HBV8xrGXerTnSS9EfmNC1jsjg3cL\n1k5ZgdJfJznGOoYCuoy5pqN8aq/c5hmXD02s45ZexqbE/2enYa0FGw141Fi3\n373usmwPPFf/WPlm7j++AxB24WvxnLmahXbrAtFZ52hzwxg9RUxP5YxhZJKb\nByFxi2V5j9QRDOqbfWZn36qVg5t+cA2GGeEPBuabtgCCyyEupSDSgeErr+8x\nRPcHMHXv0+bIWO6WCSl9YX4i24f10yFGNp5WUJ8VJnt9+R9XWfCc6OAQk1X0\nPDUsT6ccGtLMoJ7qqudzuzmipNoZZf2nCZBOXASCHQxtrGOZRlW9w58bq83R\nvG0/p1JCBDAafTLjAhX31J1UQLrwOtJ6mQsCozSqBdmUTZCUfeKN7xlodW4v\nE547fmaUk2MLwJZcVVYD5Hr9wMP04+O788s6Lu+z3wKwX4JuZu1KYZwtfBMn\nwW2M\r\n=8+j/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEM3dqyJ60iI5PYugdB8Eo9I9BuhQ2YR+W0s9MXa23G0AiEApMFVhI56TYwT+rYV5jXTFThEzYZILw7GFFmVY//dUO0="}],"size":3035,"noattachment":false,"key":"/global-dirs/-/global-dirs-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/global-dirs_2.0.0_1568702318326_0.04720537671434588"},"_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":1568702318471,"_cnpm_publish_time":1568702318471,"dist-tags":{"latest":"4.0.0"}}