You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # global-modules [![NPM version](https://img.shields.io/npm/v/global-modules.svg?style=flat)](https://www.npmjs.com/package/global-modules) [![NPM monthly downloads](https://img.shields.io/npm/dm/global-modules.svg?style=flat)](https://npmjs.org/package/global-modules) [![NPM total downloads](https://img.shields.io/npm/dt/global-modules.svg?style=flat)](https://npmjs.org/package/global-modules) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/global-modules.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/global-modules)
  2. > The directory used by npm for globally installed npm modules.
  3. ## Install
  4. Install with [npm](https://www.npmjs.com/):
  5. ```sh
  6. $ npm install --save global-modules
  7. ```
  8. ## Usage
  9. ```js
  10. var globalModules = require('global-modules');
  11. console.log(globalModules);
  12. //=> '/usr/local/lib/node_modules'
  13. ```
  14. _(Note that this path might be different based on OS or user defined configuration settings)_
  15. ## About
  16. ### Related projects
  17. * [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.")
  18. * [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.")
  19. * [homedir-polyfill](https://www.npmjs.com/package/homedir-polyfill): Node.js os.homedir polyfill for older versions of node.js. | [homepage](https://github.com/doowb/homedir-polyfill "Node.js os.homedir polyfill for older versions of node.js.")
  20. * [npm-paths](https://www.npmjs.com/package/npm-paths): Returns an array of unique "npm" directories based on the user's platform and environment. | [homepage](https://github.com/jonschlinkert/npm-paths "Returns an array of unique "npm" directories based on the user's platform and environment.")
  21. ### Contributing
  22. Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
  23. ### Contributors
  24. | **Commits** | **Contributor** |
  25. | --- | --- |
  26. | 14 | [jonschlinkert](https://github.com/jonschlinkert) |
  27. | 1 | [jason-chang](https://github.com/jason-chang) |
  28. | 1 | [Kikobeats](https://github.com/Kikobeats) |
  29. ### Building docs
  30. _(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
  31. To generate the readme, run the following command:
  32. ```sh
  33. $ npm install -g verbose/verb#dev verb-generate-readme && verb
  34. ```
  35. ### Running tests
  36. Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
  37. ```sh
  38. $ npm install && npm test
  39. ```
  40. ### Author
  41. **Jon Schlinkert**
  42. * [github/jonschlinkert](https://github.com/jonschlinkert)
  43. * [twitter/jonschlinkert](https://twitter.com/jonschlinkert)
  44. ### License
  45. Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).
  46. Released under the [MIT License](LICENSE).
  47. ***
  48. _This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on June 28, 2017._