Package Exports
- @pnpm/npm-conf
- @pnpm/npm-conf/index.js
- @pnpm/npm-conf/lib/types
- @pnpm/npm-conf/lib/types.js
- @pnpm/npm-conf/lib/util
- @pnpm/npm-conf/lib/util.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@pnpm/npm-conf) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@pnpm/npm-conf 
Get the npm config
Install
$ pnpm add @pnpm/npm-confUsage
const npmConf = require('@pnpm/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 --longAPI
npmConf()
Returns the npm config.
npmConf.defaults
Returns the default npm config.
License
MIT © Kevin Mårtensson