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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.0
    60,693
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.2.0
    60,693
  • 1.1.1
    88
  • 1.1.0
    2
  • 1.0.1
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i npm-prefix

Weekly Downloads

15,349

Version

1.2.0

License

MIT

Last publish

Collaborators

  • eush77