global-prefix
Get the npm global path prefix.
Install with npm
$ npm i global-prefix --save
This is the code used by npm internally to resolve the global prefix.
Usage
var prefix = require('global-prefix');
Related projects
- global-modules: The directory used by npm for globally installed npm modules.
- global-paths: Returns an array of unique "global" directories based on the user's platform and environment. The… more
Running tests
Install dev dependencies:
$ npm i -d && npm test
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Authors
Jon Schlinkert
License
Copyright © 2015 Jon Schlinkert
Copyright (c) npm, Inc. and Contributors
Released under the MIT license.
This file was generated by verb-cli on July 16, 2015.