@zkochan/npm-conf
Get the npm config
Last updated 6 years ago by zkochan .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @zkochan/npm-conf 
SYNC missed versions from official npm registry.

@zkochan/npm-conf Build Status

Get the npm config

Install

$ pnpm add @zkochan/npm-conf

Usage

const npmConf = require('@zkochan/npm-conf');

const conf = npmConf();

conf.get('prefix')
//=> //=> /Users/unicorn/.npm-packages

conf.get('registry')
//=> https://registry.npmjs.org/

To get a list of all available npm config options:

$ npm config list --long

API

npmConf()

Returns the npm config.

npmConf.defaults

Returns the default npm config.

License

MIT

Current Tags

  • 2.0.1                                ...           latest (6 years ago)
  • 2.0.2                                ...           next (6 years ago)

10 Versions

  • 2.0.2                                ...           6 years ago
  • 2.0.1                                ...           6 years ago
  • 2.0.0                                ...           7 years ago
  • 1.2.4                                ...           8 years ago
  • 1.2.3                                ...           8 years ago
  • 1.2.2                                ...           8 years ago
  • 1.2.1                                ...           8 years ago
  • 1.2.0                                ...           8 years ago
  • 1.1.0                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Total 27
Today 0
This Week 0
This Month 12
Last Day 0
Last Week 10
Last Month 15
Dependencies (1)
Dev Dependencies (6)
Dependents (1)

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