kevva/npm-conf

Get the npm config

JavaScript

37

16 commits

updated Aug 3, 2024

See the code

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

config
nodejs
npm

kevva/npm-conf

Get the npm config

JavaScript

37

16 commits

updated Aug 3, 2024

See the code

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

config
nodejs
npm

Project health

Overall

2.1/10

Maintained

0/10

Code review

1/10
OpenSSF Scorecard

Latest release

1.1.3 · Oct 31, 2017

Releases this year

0

Significant stargazers

Sam Verschueren

822 followers · starred May 2017

Pierre Vanduynslager

264 followers · starred Oct 2017