{"name":"global-dirs","version":"1.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":"^1.4.1","execa":"^1.0.0","import-fresh":"^3.0.0","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"c197272db0c670e5ddaa3f0b0dbef8f030931780","bugs":{"url":"https://github.com/sindresorhus/global-dirs/issues"},"homepage":"https://github.com/sindresorhus/global-dirs#readme","_id":"global-dirs@1.0.0","_nodeVersion":"8.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-FXKO72MmLCE1HsvDaWBtZWtU8EZYqEjtfNLUDkkZi0iNTiUrngVEiihacUIKeDIi+iiRXO+o8lRwziatEvOUhg==","shasum":"cfd8261df0fb13a7ba0647b2cf5cf06f0376da01","tarball":"http://registry-npm.ywwl.com/global-dirs/download/global-dirs-1.0.0.tgz","fileCount":5,"unpackedSize":7680,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcymLLCRA9TVsSAnZWagAASBAP/3bbUrfWdwXc/2d0JTW2\nN9vDIsB4FSpzkFblMqx60nTf9kkcmGwb2Xjv/akj4Ktsg4ejFx+IOfoSJHHe\nO4TOAtJzrdwiG3MGXdapHtychBGhZZmfZ1wf5QeLLy9beus1COsFvAdz9ZGU\ncmupO0ArIQTUXG/+BsQsLV24cSP6A6JHeFZKr3H06eaAcObQh0wNzpYOwr0j\nm0qPQrxSdHLZ3pM7DV4xSvmDYbs81V+x0ZqsaQQjsETb7/VJ58dFacYUbP6m\nLx3kbamJCwEMX7MaWUSzy+YoDU5OOoRwr4lu9YCa1WtV7KAnx/FNvU75NQse\njeZKYbf+YAXtleaI+TnYFxJVA8R7KbfxoFSMIZeqegsFhUAlsA56+l6O+4ha\n1DWRQ4ftxwjH9mfBZle5yk1T2AWJ/Ur+/XOAqPBHyr/jYsU976o1xAfn6yA7\nkrGa+k9QYB4dhIVWkEmimJZy19takIJk3NM21FC53tLfiMmXSjAoqDF+XaS8\n82x9S59m0w1edxdvGvs8owomNjdELwuOi4j52sHQmF+blwBAi/6sLJIdB+CB\n1j9mZ1fKIPq8ZzfpKmY21OCBNej1bbu5v+jvGZ7QfN6N+o2HNNLma0P4drog\n3+sWDc9Wzbl3DeGZ7vkbjjd205/U1o+a1a5zVuZyxHRalfGMpwlRH4QVxQNO\nxGDP\r\n=Zr3x\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID0y+7lwfWerl1hzrLuicSb5T4zar2nir/TdFgPiG08UAiEAy1J5Q3OoPpg+QE3flBfdiZ8duiQgdYlwOegNxiQgTXo="}],"size":2777,"noattachment":false,"key":"/global-dirs/-/global-dirs-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/global-dirs_1.0.0_1556767435068_0.7176131569076813"},"_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":1556767435236,"_cnpm_publish_time":1556767435236,"dist-tags":{"latest":"4.0.0"}}