This package has been deprecated

Author message:

This module is not used anymore. npm config is parsed by npm itself and by @npmcli/config

libnpmconfig

1.2.1 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i libnpmconfig

Weekly Downloads

252,290

Version

1.2.1

License

ISC

Unpacked Size

39.3 kB

Total Files

8

Last publish

Collaborators

  • darcyclarke
  • gar
  • zkat