npm-prefix
Get global npm prefix. Respects npmrc configs
Last updated 10 years ago by eush77 .
MIT · Repository · Bugs · Original npm
$ cnpm 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 (10 years ago)

1 Versions

  • 1.2.0                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org