libnpmconfig

Standalone library for reading/writing/managing npm configurations

This module is not used anymore. npm config is parsed by npm itself and by @npmcli/config
Last updated 6 years ago by zkat .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install libnpmconfig 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 1.2.1                                ...           latest (6 years ago)

5 Versions

  • 1.2.1 [deprecated]           ...           6 years ago
  • 1.2.0 [deprecated]           ...           6 years ago
  • 1.1.1 [deprecated]           ...           6 years ago
  • 1.1.0 [deprecated]           ...           6 years ago
  • 1.0.0 [deprecated]           ...           6 years ago
Downloads
Today 0
This Week 0
This Month 15
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (5)
Dependents (2)

Copyright 2013 - present © cnpmjs.org | Home |