node/deps/npm/node_modules/libnpmconfig
Kat Marchán 43dd49c978
deps: upgrade npm to 6.7.0
PR-URL: https://github.com/nodejs/node/pull/25804
Reviewed-By: Myles Borins <myles.borins@gmail.com>
2019-02-12 00:06:29 -08:00
..
node_modules deps: upgrade npm to 6.7.0 2019-02-12 00:06:29 -08:00
CHANGELOG.md deps: upgrade npm to 6.7.0 2019-02-12 00:06:29 -08:00
CODE_OF_CONDUCT.md deps: upgrade npm to 6.7.0 2019-02-12 00:06:29 -08:00
CONTRIBUTING.md deps: upgrade npm to 6.7.0 2019-02-12 00:06:29 -08:00
index.js deps: upgrade npm to 6.7.0 2019-02-12 00:06:29 -08:00
LICENSE deps: upgrade npm to 6.7.0 2019-02-12 00:06:29 -08:00
package.json deps: upgrade npm to 6.7.0 2019-02-12 00:06:29 -08:00
PULL_REQUEST_TEMPLATE deps: upgrade npm to 6.7.0 2019-02-12 00:06:29 -08:00
README.md deps: upgrade npm to 6.7.0 2019-02-12 00:06:29 -08:00

libnpmconfig npm version license Travis AppVeyor Coverage Status

libnpmconfig is a Node.js library for programmatically managing npm's configuration files and data.

Example

const config = require('libnpmconfig')

console.log('configured registry:', config.read({
  registry: 'https://default.registry/'
}))
// => configured registry: https://registry.npmjs.org

Install

$ npm install libnpmconfig

Table of Contents

API

> read(cliOpts, builtinOpts)

Reads configurations from the filesystem and the env and returns a figgy-pudding object with the configuration values.

If cliOpts is provided, it will be merged with the returned config pudding, shadowing any read values. These are intended as CLI-provided options. Do your own process.argv parsing, though.

If builtinOpts.cwd is provided, it will be used instead of process.cwd() as the starting point for config searching.