Skip to content
Get the npm config
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
.editorconfig
.gitattributes Initial commit May 23, 2017
.gitignore Meta tweaks Jul 17, 2017
.npmrc Meta tweaks Jul 17, 2017
.travis.yml Meta tweaks Jul 17, 2017
index.js
license Meta tweaks Jul 17, 2017
package.json v1.1.3 Oct 31, 2017
readme.md Small tweak Aug 21, 2017
test.js Remove test that returns a falsy value Jul 24, 2017

readme.md

npm-conf Build Status

Get the npm config

Install

$ npm install npm-conf

Usage

const npmConf = require('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 © Kevin Mårtensson

You can’t perform that action at this time.