npm-prefix

Get global npm prefix. Respects npmrc configs

MIT License

Downloads
58.8K
Stars
3
Committers
1

npm-prefix

Get global npm prefix. Respects npmrc configs.

Example

var npmPrefix = require('npm-prefix');

npmPrefix()
//=> '/usr/local'

API

npmPrefix()

Returns the npm prefix.

Install

npm install npm-prefix

License

MIT