JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6002502
  • Score
    100M100P100Q211003F
  • License MIT

Get the npm config

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 Build Status

Get the npm config

Install

$ pnpm add @pnpm/npm-conf

Usage

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 --long

API

npmConf()

Returns the npm config.

npmConf.defaults

Returns the default npm config.

License

MIT © Kevin Mårtensson