npm-conf

Get the npm config

MIT 5 个版本
安装
npm install npm-conf
yarn add npm-conf
pnpm add npm-conf
bun add npm-conf
README

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

版本列表
1.1.3 2017-10-31
1.1.2 2017-07-24
1.1.1 2017-07-24
1.1.0 2017-07-17
1.0.0 2017-05-23