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

5 Versions

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

Copyright 2013 - present © cnpmjs.org | Home |