{"_id":"global-paths","_rev":"229392","name":"global-paths","description":"Returns an array of unique \"global\" directories based on the user's platform and environment. The resulting paths can be used for doing lookups for generators or other globally installed npm packages. Node.js / JavaScript.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T15:44:57.000Z","created":"2015-07-15T05:30:55.490Z","1.0.0":"2016-12-10T18:05:02.457Z","0.1.2":"2015-11-19T06:27:46.012Z","0.1.1":"2015-07-15T05:32:52.903Z","0.1.0":"2015-07-15T05:30:55.490Z"},"users":{"n370":true,"brentonhouse":true},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/global-paths.git"},"versions":{"1.0.0":{"name":"global-paths","description":"Returns an array of unique \"global\" directories based on the user's platform and environment. The resulting paths can be used for doing lookups for generators or other globally installed npm packages. Node.js / JavaScript.","version":"1.0.0","homepage":"https://github.com/jonschlinkert/global-paths","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/global-paths.git"},"bugs":{"url":"https://github.com/jonschlinkert/global-paths/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"array-unique":"^0.3.2","global-modules":"^0.2.3","is-windows":"^1.0.0"},"devDependencies":{"gulp-format-md":"^0.1.11","mocha":"^3.2.0"},"keywords":["directory","dirname","global","module","package","path","paths","prefix","resolve"],"verb":{"related":{"list":["contains-path","cwd","git-config-path","global-modules","global-prefix"]},"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"reflinks":["verb","verb-generate-readme"]},"gitHead":"77eae41e079f093635916d54b8249cf72b939e45","_id":"global-paths@1.0.0","_shasum":"3ffc84341594e47b32bfade5785355d4df7feac7","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"3ffc84341594e47b32bfade5785355d4df7feac7","size":3071,"noattachment":false,"key":"/global-paths/-/global-paths-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/global-paths/download/global-paths-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/global-paths-1.0.0.tgz_1481393101802_0.7166904443874955"},"directories":{},"publish_time":1481393102457,"_cnpm_publish_time":1481393102457,"_hasShrinkwrap":false},"0.1.2":{"name":"global-paths","description":"Returns an array of unique \"global\" directories based on the user's platform and environment. The resulting paths can be used for doing lookups for generators or other globally installed npm packages. Node.js / JavaScript.","version":"0.1.2","homepage":"https://github.com/jonschlinkert/global-paths","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/global-paths.git"},"bugs":{"url":"https://github.com/jonschlinkert/global-paths/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"array-unique":"^0.2.1","global-modules":"^0.2.0","is-windows":"^0.1.0"},"devDependencies":{"mocha":"*"},"keywords":["directory","dirname","global","module","package","path","prefix","resolve"],"verb":{"related":{"list":["contains-path","cwd","git-config-path","global-modules","global-prefix"]}},"gitHead":"30a5d2bb5f48bd761ed6b100322497af939093ea","_id":"global-paths@0.1.2","_shasum":"8869ecb2a8c80995be8a459f27ae5db7a0b03299","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"8869ecb2a8c80995be8a459f27ae5db7a0b03299","size":2552,"noattachment":false,"key":"/global-paths/-/global-paths-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/global-paths/download/global-paths-0.1.2.tgz"},"directories":{},"publish_time":1447914466012,"_cnpm_publish_time":1447914466012,"_hasShrinkwrap":false},"0.1.1":{"name":"global-paths","description":"Returns an array of unique \"global\" directories based on the user's platform and environment. The resulting paths can be used for doing lookups for generators or other globally installed npm packages. Node.js / JavaScript.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/global-paths","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/global-paths.git"},"bugs":{"url":"https://github.com/jonschlinkert/global-paths/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"array-unique":"^0.2.1","global-modules":"^0.2.0","is-windows":"^0.1.0"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["directory","dirname","global","module","package","path","prefix","resolve"],"verb":{"related":{"list":["global-modules","global-prefix","cwd","git-config-path","contains-path"]}},"gitHead":"12f7de441b534a6c59a6b97e800868125317fd95","_id":"global-paths@0.1.1","_shasum":"e6fdb846a3196808613f2c9a56c03fcf30c89443","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"e6fdb846a3196808613f2c9a56c03fcf30c89443","size":2487,"noattachment":false,"key":"/global-paths/-/global-paths-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/global-paths/download/global-paths-0.1.1.tgz"},"directories":{},"publish_time":1436938372903,"_cnpm_publish_time":1436938372903,"_hasShrinkwrap":false},"0.1.0":{"name":"global-paths","description":"Returns an array of unique \"global\" directories based on the user's platform and environment. The resulting paths can be used for doing lookups for generators or other globaly installed npm packages.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/global-paths","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/global-paths.git"},"bugs":{"url":"https://github.com/jonschlinkert/global-paths/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"array-unique":"^0.2.1","global-modules":"^0.2.0","is-windows":"^0.1.0"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["directory","dirname","global","module","package","path","prefix","resolve"],"verb":{"related":{"list":["global-modules","global-prefix","cwd","git-config-path","contains-path"]}},"_id":"global-paths@0.1.0","_shasum":"3b1af0530be7120a0d4dfcb4cc88940d343fb5a1","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"3b1af0530be7120a0d4dfcb4cc88940d343fb5a1","size":2481,"noattachment":false,"key":"/global-paths/-/global-paths-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/global-paths/download/global-paths-0.1.0.tgz"},"directories":{},"publish_time":1436938255490,"_cnpm_publish_time":1436938255490,"_hasShrinkwrap":false}},"readme":"# global-paths [![NPM version](https://img.shields.io/npm/v/global-paths.svg?style=flat)](https://www.npmjs.com/package/global-paths) [![NPM monthly downloads](https://img.shields.io/npm/dm/global-paths.svg?style=flat)](https://npmjs.org/package/global-paths)  [![NPM total downloads](https://img.shields.io/npm/dt/global-paths.svg?style=flat)](https://npmjs.org/package/global-paths) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/global-paths.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/global-paths)\n\n> Returns an array of unique \"global\" directories based on the user's platform and environment. The resulting paths can be used for doing lookups for generators or other globally installed npm packages. Node.js / JavaScript.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save global-paths\n```\n\n## Usage\n\n```js\nvar paths = require('global-paths');\nconsole.log(paths());\n\n// results in (with my setup - macbook pro)\n[ '/Users/jonschlinkert/dev/path-utils/global-paths/node_modules',\n  '/usr/local/lib/node_modules',\n  '/Users/jonschlinkert/dev/path-utils/node_modules',\n  '/Users/jonschlinkert/dev/node_modules',\n  '/Users/jonschlinkert/node_modules',\n  '/Users/node_modules',\n  '/usr/lib/node_modules',\n  '/node_modules' ]\n```\n\n## About\n\n### Related projects\n\n* [contains-path](https://www.npmjs.com/package/contains-path): Return true if a file path contains the given path. | [homepage](https://github.com/jonschlinkert/contains-path \"Return true if a file path contains the given path.\")\n* [cwd](https://www.npmjs.com/package/cwd): Easily get the CWD (current working directory) of a project based on package.json, optionally starting… [more](https://github.com/jonschlinkert/cwd) | [homepage](https://github.com/jonschlinkert/cwd \"Easily get the CWD (current working directory) of a project based on package.json, optionally starting from a given path. (node.js/javascript util)\")\n* [git-config-path](https://www.npmjs.com/package/git-config-path): Resolve the path to the user's local or global .gitconfig. | [homepage](https://github.com/jonschlinkert/git-config-path \"Resolve the path to the user's local or global .gitconfig.\")\n* [global-modules](https://www.npmjs.com/package/global-modules): The directory used by npm for globally installed npm modules. | [homepage](https://github.com/jonschlinkert/global-modules \"The directory used by npm for globally installed npm modules.\")\n* [global-prefix](https://www.npmjs.com/package/global-prefix): Get the npm global path prefix. | [homepage](https://github.com/jonschlinkert/global-prefix \"Get the npm global path prefix.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Contributors\n\n| **Commits** | **Contributor**<br/> | \n| --- | --- |\n| 6 | [jonschlinkert](https://github.com/jonschlinkert) |\n| 1 | [gucong3000](https://github.com/gucong3000) |\n\n### Building docs\n\n_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_\n\nTo generate the readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm install -g verb verb-generate-readme && verb\n```\n\n### Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm install -d && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT license](https://github.com/jonschlinkert/global-paths/blob/master/LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.2.0, on December 10, 2016._","_attachments":{},"homepage":"https://github.com/jonschlinkert/global-paths","bugs":{"url":"https://github.com/jonschlinkert/global-paths/issues"},"license":"MIT"}