$ npm install npm-prefix
Get global npm prefix. Respects npmrc configs.
var npmPrefix = require('npm-prefix');
npmPrefix()
//=> '/usr/local'
npmPrefix()
Returns the npm prefix.
npm install npm-prefix
MIT
© 2010 - cnpmjs.org x YWFE | Home | YWFE