| 1 |
{ |
| 2 |
"_id": "global-dirs", |
| 3 |
"_rev": "4-bd67f4600e0fdb0d46bc5ad0456b5bcb", |
| 4 |
"name": "global-dirs", |
| 5 |
"description": "Get the directory of globally installed packages and binaries", |
| 6 |
"dist-tags": { |
| 7 |
"latest": "2.0.1" |
| 8 |
}, |
| 9 |
"versions": { |
| 10 |
"0.1.0": { |
| 11 |
"name": "global-dirs", |
| 12 |
"version": "0.1.0", |
| 13 |
"description": "Get the directory of globally installed packages and binaries", |
| 14 |
"license": "MIT", |
| 15 |
"repository": { |
| 16 |
"type": "git", |
| 17 |
"url": "git+https://github.com/sindresorhus/global-dirs.git" |
| 18 |
}, |
| 19 |
"author": { |
| 20 |
"name": "Sindre Sorhus", |
| 21 |
"email": "[email protected]", |
| 22 |
"url": "sindresorhus.com" |
| 23 |
}, |
| 24 |
"engines": { |
| 25 |
"node": ">=4" |
| 26 |
}, |
| 27 |
"scripts": { |
| 28 |
"test": "xo && ava" |
| 29 |
}, |
| 30 |
"files": [ |
| 31 |
"index.js" |
| 32 |
], |
| 33 |
"keywords": [ |
| 34 |
"global", |
| 35 |
"prefix", |
| 36 |
"path", |
| 37 |
"paths", |
| 38 |
"npm", |
| 39 |
"yarn", |
| 40 |
"node", |
| 41 |
"modules", |
| 42 |
"node-modules", |
| 43 |
"package", |
| 44 |
"packages", |
| 45 |
"binary", |
| 46 |
"binaries", |
| 47 |
"bin", |
| 48 |
"directory", |
| 49 |
"directories", |
| 50 |
"npmrc", |
| 51 |
"rc", |
| 52 |
"config", |
| 53 |
"root", |
| 54 |
"resolve" |
| 55 |
], |
| 56 |
"dependencies": { |
| 57 |
"ini": "^1.3.4" |
| 58 |
}, |
| 59 |
"devDependencies": { |
| 60 |
"ava": "*", |
| 61 |
"execa": "^0.7.0", |
| 62 |
"xo": "*" |
| 63 |
}, |
| 64 |
"gitHead": "d8d99bcad75693b4c6380cffd57a49256675cc9c", |
| 65 |
"bugs": { |
| 66 |
"url": "https://github.com/sindresorhus/global-dirs/issues" |
| 67 |
}, |
| 68 |
"homepage": "https://github.com/sindresorhus/global-dirs#readme", |
| 69 |
"_id": "[email protected]", |
| 70 |
"_shasum": "10d34039e0df04272e262cf24224f7209434df4f", |
| 71 |
"_from": ".", |
| 72 |
"_npmVersion": "2.15.11", |
| 73 |
"_nodeVersion": "4.8.3", |
| 74 |
"_npmUser": { |
| 75 |
"name": "sindresorhus", |
| 76 |
"email": "[email protected]" |
| 77 |
}, |
| 78 |
"dist": { |
| 79 |
"shasum": "10d34039e0df04272e262cf24224f7209434df4f", |
| 80 |
"tarball": "https://registry.npmjs.org/global-dirs/-/global-dirs-0.1.0.tgz" |
| 81 |
}, |
| 82 |
"maintainers": [ |
| 83 |
{ |
| 84 |
"name": "sindresorhus", |
| 85 |
"email": "[email protected]" |
| 86 |
} |
| 87 |
], |
| 88 |
"_npmOperationalInternal": { |
| 89 |
"host": "s3://npm-registry-packages", |
| 90 |
"tmp": "tmp/global-dirs-0.1.0.tgz_1498429218250_0.46048022201284766" |
| 91 |
}, |
| 92 |
"directories": {} |
| 93 |
}, |
| 94 |
"0.1.1": { |
| 95 |
"name": "global-dirs", |
| 96 |
"version": "0.1.1", |
| 97 |
"description": "Get the directory of globally installed packages and binaries", |
| 98 |
"license": "MIT", |
| 99 |
"repository": { |
| 100 |
"type": "git", |
| 101 |
"url": "git+https://github.com/sindresorhus/global-dirs.git" |
| 102 |
}, |
| 103 |
"author": { |
| 104 |
"name": "Sindre Sorhus", |
| 105 |
"email": "[email protected]", |
| 106 |
"url": "sindresorhus.com" |
| 107 |
}, |
| 108 |
"engines": { |
| 109 |
"node": ">=4" |
| 110 |
}, |
| 111 |
"scripts": { |
| 112 |
"test": "xo && ava" |
| 113 |
}, |
| 114 |
"files": [ |
| 115 |
"index.js" |
| 116 |
], |
| 117 |
"keywords": [ |
| 118 |
"global", |
| 119 |
"prefix", |
| 120 |
"path", |
| 121 |
"paths", |
| 122 |
"npm", |
| 123 |
"yarn", |
| 124 |
"node", |
| 125 |
"modules", |
| 126 |
"node-modules", |
| 127 |
"package", |
| 128 |
"packages", |
| 129 |
"binary", |
| 130 |
"binaries", |
| 131 |
"bin", |
| 132 |
"directory", |
| 133 |
"directories", |
| 134 |
"npmrc", |
| 135 |
"rc", |
| 136 |
"config", |
| 137 |
"root", |
| 138 |
"resolve" |
| 139 |
], |
| 140 |
"dependencies": { |
| 141 |
"ini": "^1.3.4" |
| 142 |
}, |
| 143 |
"devDependencies": { |
| 144 |
"ava": "*", |
| 145 |
"execa": "^0.7.0", |
| 146 |
"xo": "*" |
| 147 |
}, |
| 148 |
"gitHead": "bcb8a21a40930022e069f9c5b506ce41c8d46bff", |
| 149 |
"bugs": { |
| 150 |
"url": "https://github.com/sindresorhus/global-dirs/issues" |
| 151 |
}, |
| 152 |
"homepage": "https://github.com/sindresorhus/global-dirs#readme", |
| 153 |
"_id": "[email protected]", |
| 154 |
"_shasum": "b319c0dd4607f353f3be9cca4c72fc148c49f445", |
| 155 |
"_from": ".", |
| 156 |
"_npmVersion": "2.15.11", |
| 157 |
"_nodeVersion": "4.8.4", |
| 158 |
"_npmUser": { |
| 159 |
"name": "sindresorhus", |
| 160 |
"email": "[email protected]" |
| 161 |
}, |
| 162 |
"dist": { |
| 163 |
"shasum": "b319c0dd4607f353f3be9cca4c72fc148c49f445", |
| 164 |
"tarball": "https://registry.npmjs.org/global-dirs/-/global-dirs-0.1.1.tgz" |
| 165 |
}, |
| 166 |
"maintainers": [ |
| 167 |
{ |
| 168 |
"name": "sindresorhus", |
| 169 |
"email": "[email protected]" |
| 170 |
} |
| 171 |
], |
| 172 |
"_npmOperationalInternal": { |
| 173 |
"host": "s3://npm-registry-packages", |
| 174 |
"tmp": "tmp/global-dirs-0.1.1.tgz_1511072938335_0.43734972598031163" |
| 175 |
}, |
| 176 |
"directories": {} |
| 177 |
}, |
| 178 |
"1.0.0": { |
| 179 |
"name": "global-dirs", |
| 180 |
"version": "1.0.0", |
| 181 |
"description": "Get the directory of globally installed packages and binaries", |
| 182 |
"license": "MIT", |
| 183 |
"repository": { |
| 184 |
"type": "git", |
| 185 |
"url": "git+https://github.com/sindresorhus/global-dirs.git" |
| 186 |
}, |
| 187 |
"author": { |
| 188 |
"name": "Sindre Sorhus", |
| 189 |
"email": "[email protected]", |
| 190 |
"url": "sindresorhus.com" |
| 191 |
}, |
| 192 |
"engines": { |
| 193 |
"node": ">=8" |
| 194 |
}, |
| 195 |
"scripts": { |
| 196 |
"test": "xo && ava && tsd" |
| 197 |
}, |
| 198 |
"keywords": [ |
| 199 |
"global", |
| 200 |
"prefix", |
| 201 |
"path", |
| 202 |
"paths", |
| 203 |
"npm", |
| 204 |
"yarn", |
| 205 |
"node", |
| 206 |
"modules", |
| 207 |
"node-modules", |
| 208 |
"package", |
| 209 |
"packages", |
| 210 |
"binary", |
| 211 |
"binaries", |
| 212 |
"bin", |
| 213 |
"directory", |
| 214 |
"directories", |
| 215 |
"npmrc", |
| 216 |
"rc", |
| 217 |
"config", |
| 218 |
"root", |
| 219 |
"resolve" |
| 220 |
], |
| 221 |
"dependencies": { |
| 222 |
"ini": "^1.3.5" |
| 223 |
}, |
| 224 |
"devDependencies": { |
| 225 |
"ava": "^1.4.1", |
| 226 |
"execa": "^1.0.0", |
| 227 |
"import-fresh": "^3.0.0", |
| 228 |
"tsd": "^0.7.2", |
| 229 |
"xo": "^0.24.0" |
| 230 |
}, |
| 231 |
"gitHead": "c197272db0c670e5ddaa3f0b0dbef8f030931780", |
| 232 |
"bugs": { |
| 233 |
"url": "https://github.com/sindresorhus/global-dirs/issues" |
| 234 |
}, |
| 235 |
"homepage": "https://github.com/sindresorhus/global-dirs#readme", |
| 236 |
"_id": "[email protected]", |
| 237 |
"_nodeVersion": "8.16.0", |
| 238 |
"_npmVersion": "6.9.0", |
| 239 |
"_npmUser": { |
| 240 |
"name": "sindresorhus", |
| 241 |
"email": "[email protected]" |
| 242 |
}, |
| 243 |
"dist": { |
| 244 |
"integrity": "sha512-FXKO72MmLCE1HsvDaWBtZWtU8EZYqEjtfNLUDkkZi0iNTiUrngVEiihacUIKeDIi+iiRXO+o8lRwziatEvOUhg==", |
| 245 |
"shasum": "cfd8261df0fb13a7ba0647b2cf5cf06f0376da01", |
| 246 |
"tarball": "https://registry.npmjs.org/global-dirs/-/global-dirs-1.0.0.tgz", |
| 247 |
"fileCount": 5, |
| 248 |
"unpackedSize": 7680, |
| 249 |
"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" |
| 250 |
}, |
| 251 |
"maintainers": [ |
| 252 |
{ |
| 253 |
"name": "sindresorhus", |
| 254 |
"email": "[email protected]" |
| 255 |
} |
| 256 |
], |
| 257 |
"directories": {}, |
| 258 |
"_npmOperationalInternal": { |
| 259 |
"host": "s3://npm-registry-packages", |
| 260 |
"tmp": "tmp/global-dirs_1.0.0_1556767435068_0.7176131569076813" |
| 261 |
}, |
| 262 |
"_hasShrinkwrap": false |
| 263 |
}, |
| 264 |
"2.0.0": { |
| 265 |
"name": "global-dirs", |
| 266 |
"version": "2.0.0", |
| 267 |
"description": "Get the directory of globally installed packages and binaries", |
| 268 |
"license": "MIT", |
| 269 |
"repository": { |
| 270 |
"type": "git", |
| 271 |
"url": "git+https://github.com/sindresorhus/global-dirs.git" |
| 272 |
}, |
| 273 |
"author": { |
| 274 |
"name": "Sindre Sorhus", |
| 275 |
"email": "[email protected]", |
| 276 |
"url": "sindresorhus.com" |
| 277 |
}, |
| 278 |
"engines": { |
| 279 |
"node": ">=8" |
| 280 |
}, |
| 281 |
"scripts": { |
| 282 |
"test": "xo && ava && tsd" |
| 283 |
}, |
| 284 |
"keywords": [ |
| 285 |
"global", |
| 286 |
"prefix", |
| 287 |
"path", |
| 288 |
"paths", |
| 289 |
"npm", |
| 290 |
"yarn", |
| 291 |
"node", |
| 292 |
"modules", |
| 293 |
"node-modules", |
| 294 |
"package", |
| 295 |
"packages", |
| 296 |
"binary", |
| 297 |
"binaries", |
| 298 |
"bin", |
| 299 |
"directory", |
| 300 |
"directories", |
| 301 |
"npmrc", |
| 302 |
"rc", |
| 303 |
"config", |
| 304 |
"root", |
| 305 |
"resolve" |
| 306 |
], |
| 307 |
"dependencies": { |
| 308 |
"ini": "^1.3.5" |
| 309 |
}, |
| 310 |
"devDependencies": { |
| 311 |
"ava": "^2.4.0", |
| 312 |
"execa": "^2.0.4", |
| 313 |
"import-fresh": "^3.1.0", |
| 314 |
"tsd": "^0.7.4", |
| 315 |
"xo": "^0.24.0" |
| 316 |
}, |
| 317 |
"gitHead": "d6c86fc94680042cb3fa1f0fb5aefbd183f850be", |
| 318 |
"bugs": { |
| 319 |
"url": "https://github.com/sindresorhus/global-dirs/issues" |
| 320 |
}, |
| 321 |
"homepage": "https://github.com/sindresorhus/global-dirs#readme", |
| 322 |
"_id": "[email protected]", |
| 323 |
"_nodeVersion": "8.16.1", |
| 324 |
"_npmVersion": "6.11.3", |
| 325 |
"_npmUser": { |
| 326 |
"name": "sindresorhus", |
| 327 |
"email": "[email protected]" |
| 328 |
}, |
| 329 |
"dist": { |
| 330 |
"integrity": "sha512-Ny6SRz+NMemW6S1GxUdnZFH2UhE1Zybf5lDQHhOHI98KkHUZsCddObyhW1Iyt6mFmcD7I0lgTLU9PcUpIhIgSw==", |
| 331 |
"shasum": "fece111e32f8fad04ff73186362bb32ddeaac2e8", |
| 332 |
"tarball": "https://registry.npmjs.org/global-dirs/-/global-dirs-2.0.0.tgz", |
| 333 |
"fileCount": 5, |
| 334 |
"unpackedSize": 8248, |
| 335 |
"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" |
| 336 |
}, |
| 337 |
"maintainers": [ |
| 338 |
{ |
| 339 |
"name": "sindresorhus", |
| 340 |
"email": "[email protected]" |
| 341 |
} |
| 342 |
], |
| 343 |
"directories": {}, |
| 344 |
"_npmOperationalInternal": { |
| 345 |
"host": "s3://npm-registry-packages", |
| 346 |
"tmp": "tmp/global-dirs_2.0.0_1568702318326_0.04720537671434588" |
| 347 |
}, |
| 348 |
"_hasShrinkwrap": false |
| 349 |
}, |
| 350 |
"2.0.1": { |
| 351 |
"name": "global-dirs", |
| 352 |
"version": "2.0.1", |
| 353 |
"description": "Get the directory of globally installed packages and binaries", |
| 354 |
"license": "MIT", |
| 355 |
"repository": { |
| 356 |
"type": "git", |
| 357 |
"url": "git+https://github.com/sindresorhus/global-dirs.git" |
| 358 |
}, |
| 359 |
"author": { |
| 360 |
"name": "Sindre Sorhus", |
| 361 |
"email": "[email protected]", |
| 362 |
"url": "sindresorhus.com" |
| 363 |
}, |
| 364 |
"engines": { |
| 365 |
"node": ">=8" |
| 366 |
}, |
| 367 |
"scripts": { |
| 368 |
"test": "xo && ava && tsd" |
| 369 |
}, |
| 370 |
"keywords": [ |
| 371 |
"global", |
| 372 |
"prefix", |
| 373 |
"path", |
| 374 |
"paths", |
| 375 |
"npm", |
| 376 |
"yarn", |
| 377 |
"node", |
| 378 |
"modules", |
| 379 |
"node-modules", |
| 380 |
"package", |
| 381 |
"packages", |
| 382 |
"binary", |
| 383 |
"binaries", |
| 384 |
"bin", |
| 385 |
"directory", |
| 386 |
"directories", |
| 387 |
"npmrc", |
| 388 |
"rc", |
| 389 |
"config", |
| 390 |
"root", |
| 391 |
"resolve" |
| 392 |
], |
| 393 |
"dependencies": { |
| 394 |
"ini": "^1.3.5" |
| 395 |
}, |
| 396 |
"devDependencies": { |
| 397 |
"ava": "^2.4.0", |
| 398 |
"execa": "^3.2.0", |
| 399 |
"import-fresh": "^3.1.0", |
| 400 |
"tsd": "^0.10.0", |
| 401 |
"xo": "^0.25.3" |
| 402 |
}, |
| 403 |
"gitHead": "327d5e621f51f7f39d212223c22cf9cd8f0e288f", |
| 404 |
"bugs": { |
| 405 |
"url": "https://github.com/sindresorhus/global-dirs/issues" |
| 406 |
}, |
| 407 |
"homepage": "https://github.com/sindresorhus/global-dirs#readme", |
| 408 |
"_id": "[email protected]", |
| 409 |
"_nodeVersion": "10.17.0", |
| 410 |
"_npmVersion": "6.11.3", |
| 411 |
"_npmUser": { |
| 412 |
"name": "sindresorhus", |
| 413 |
"email": "[email protected]" |
| 414 |
}, |
| 415 |
"dist": { |
| 416 |
"integrity": "sha512-5HqUqdhkEovj2Of/ms3IeS/EekcO54ytHRLV4PEY2rhRwrHXLQjeVEES0Lhka0xwNDtGYn58wyC4s5+MHsOO6A==", |
| 417 |
"shasum": "acdf3bb6685bcd55cb35e8a052266569e9469201", |
| 418 |
"tarball": "https://registry.npmjs.org/global-dirs/-/global-dirs-2.0.1.tgz", |
| 419 |
"fileCount": 5, |
| 420 |
"unpackedSize": 8272, |
| 421 |
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdxZiWCRA9TVsSAnZWagAAARUP/ipyS0mx2lecCYXOKYtc\nyIGsw7A2RP8MBxSb8QTeDyIZREUwpUUlpm9nHMX8WOxqCkdRvzT8uVu4q9QW\nxmUTSXbxPs8wsGqkPHTc0xtTWS/slp5oKLCx2OHedj7EhOq+1oJTBZAKt9sV\njRTbiu/OQ+d0aqu/oTjejNyJrHcufAD/k4e55JmxzuqSXb/tmHhy6mNcc8+B\n/s7JSWmlOWl7ez0JH/LP3gGFYf3DqzehInNukGPviMzEAISSyrLxFZqzG9l8\noMLGnhtCqz9pDQhS4vTqj4356XeFsy+xbUpfbW23/dkN5cigMzlymiFpOByS\nILe64UFLP9wclVlm5WNxMI2suxi7jcBCX5eozuVKEo7SJf8XT4RfoC7/iGxc\nuythYCX+XvYq+mCtL7/qUb/bDEqCwlTbf93vkWZ7QYhzxxIjfvCuFzg4+lyE\n+1R4YeVe2qQ+3ftZY/PjAmsZe0XmXLs6kL2XzZEkoyUwLpkSDwR0oJavEtWQ\nZagPbXDdzEHeHfk6l+tFQxS15H4wPfJiURbHPpRcxBbm5A4ugKUxmOaSWWEC\n9JYhVfzC4Uyphx5O/mjH1Zjkg/Ps3wbaWATta13wlF+mHQEDoHARXYaoVaSe\nWuWC82zHipzm3U32Imdb2gkKWeWN3lRSvFhAnw0Juk5MaIPb4Snl8GNyScVO\nXan3\r\n=JwC3\r\n-----END PGP SIGNATURE-----\r\n" |
| 422 |
}, |
| 423 |
"maintainers": [ |
| 424 |
{ |
| 425 |
"name": "sindresorhus", |
| 426 |
"email": "[email protected]" |
| 427 |
} |
| 428 |
], |
| 429 |
"directories": {}, |
| 430 |
"_npmOperationalInternal": { |
| 431 |
"host": "s3://npm-registry-packages", |
| 432 |
"tmp": "tmp/global-dirs_2.0.1_1573230741719_0.9586319357797652" |
| 433 |
}, |
| 434 |
"_hasShrinkwrap": false |
| 435 |
} |
| 436 |
}, |
| 437 |
"readme": "# global-dirs [](https://travis-ci.org/sindresorhus/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\n## Install\n\n```\n$ npm install global-dirs\n```\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\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\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\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", |
| 438 |
"maintainers": [ |
| 439 |
{ |
| 440 |
"name": "sindresorhus", |
| 441 |
"email": "[email protected]" |
| 442 |
} |
| 443 |
], |
| 444 |
"time": { |
| 445 |
"modified": "2019-11-08T16:32:24.342Z", |
| 446 |
"created": "2017-06-25T22:20:19.199Z", |
| 447 |
"0.1.0": "2017-06-25T22:20:19.199Z", |
| 448 |
"0.1.1": "2017-11-19T06:28:58.400Z", |
| 449 |
"1.0.0": "2019-05-02T03:23:55.236Z", |
| 450 |
"2.0.0": "2019-09-17T06:38:38.471Z", |
| 451 |
"2.0.1": "2019-11-08T16:32:21.836Z" |
| 452 |
}, |
| 453 |
"homepage": "https://github.com/sindresorhus/global-dirs#readme", |
| 454 |
"keywords": [ |
| 455 |
"global", |
| 456 |
"prefix", |
| 457 |
"path", |
| 458 |
"paths", |
| 459 |
"npm", |
| 460 |
"yarn", |
| 461 |
"node", |
| 462 |
"modules", |
| 463 |
"node-modules", |
| 464 |
"package", |
| 465 |
"packages", |
| 466 |
"binary", |
| 467 |
"binaries", |
| 468 |
"bin", |
| 469 |
"directory", |
| 470 |
"directories", |
| 471 |
"npmrc", |
| 472 |
"rc", |
| 473 |
"config", |
| 474 |
"root", |
| 475 |
"resolve" |
| 476 |
], |
| 477 |
"repository": { |
| 478 |
"type": "git", |
| 479 |
"url": "git+https://github.com/sindresorhus/global-dirs.git" |
| 480 |
}, |
| 481 |
"author": { |
| 482 |
"name": "Sindre Sorhus", |
| 483 |
"email": "[email protected]", |
| 484 |
"url": "sindresorhus.com" |
| 485 |
}, |
| 486 |
"bugs": { |
| 487 |
"url": "https://github.com/sindresorhus/global-dirs/issues" |
| 488 |
}, |
| 489 |
"license": "MIT", |
| 490 |
"readmeFilename": "readme.md" |
| 491 |
} |