2.0.1 • Published 4 years ago

@zkochan/npm-conf v2.0.1

Weekly downloads
3,296
License
MIT
Repository
github
Last release
4 years ago

@zkochan/npm-conf Build Status

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

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago