npm-prefix

1.2.0 • Public • Published

npm

npm-prefix

Build Status Dependency Status

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

Package Sidebar

Install

npm i npm-prefix

Weekly Downloads

15,191

Version

1.2.0

License

MIT

Last publish

Collaborators

  • eush77