@zkochan/npm-conf ![Build Status](https://camo.githubusercontent.com/f72396b82068bbc38e52006d9e10b430b9e1faff97fcdd248549f18d776b90a7/68747470733a2f2f7472617669732d63692e636f6d2f7a6b6f6368616e2f6e706d2d636f6e662e7376673f6272616e63683d6d6173746572)
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