global-prefix
Get the npm global path prefix.
Install
Install with npm:
$ npm install --save global-prefix
This is based on the code used by npm internally to resolve the global prefix.
Usage
var prefix = require('global-prefix');
//=> '/usr/local'
About
Related projects
- global-modules: The directory used by npm for globally installed npm modules. | homepage
- global-paths: Returns an array of unique "global" directories based on the user's platform and environment. The… more | homepage
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Contributors
Commits | Contributor |
---|---|
16 | jonschlinkert |
1 | rmbaad |
1 | jason-chang |
1 | jorrit |
1 | mathiasvr |
1 | tunnckoCore |
Building docs
(This document was generated by verb-generate-readme (a verb generator), please don't edit the readme directly. Any changes to the readme must be made in .verb.md.)
To generate the readme and API documentation with verb:
$ npm install -g verb verb-generate-readme && verb
Running tests
Install dev dependencies:
$ npm install -d && npm test
Author
Jon Schlinkert
License
Copyright © 2016, Jon Schlinkert. Released under the MIT license.
This file was generated by verb-generate-readme, v0.2.0, on November 30, 2016.