npm-prefix
Get global npm prefix. Respects npmrc configs
Last updated 11 years ago by eush77 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install npm-prefix 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.2.0                                ...           latest (11 years ago)

5 Versions

  • 1.2.0                                ...           11 years ago
  • 1.1.1                                ...           11 years ago
  • 1.1.0                                ...           11 years ago
  • 1.0.1                                ...           11 years ago
  • 1.0.0                                ...           11 years ago
Maintainers (1)
Downloads
Total 21
Today 0
This Week 3
This Month 9
Last Day 1
Last Week 0
Last Month 6
Dependencies (3)
Dev Dependencies (3)

© 2010 - cnpmjs.org x YWFE | Home | YWFE