libnpmconfig

WebJar for libnpmconfig

License

License

ISC
Categories

Categories

config Application Layer Libs Configuration
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

libnpmconfig
Last Version

Last Version

1.2.1
Release Date

Release Date

Type

Type

jar
Description

Description

libnpmconfig
WebJar for libnpmconfig
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/npm/libnpmconfig

Download libnpmconfig

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/libnpmconfig/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>libnpmconfig</artifactId>
    <version>1.2.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/libnpmconfig/
implementation 'org.webjars.npm:libnpmconfig:1.2.1'
// https://jarcasting.com/artifacts/org.webjars.npm/libnpmconfig/
implementation ("org.webjars.npm:libnpmconfig:1.2.1")
'org.webjars.npm:libnpmconfig:jar:1.2.1'
<dependency org="org.webjars.npm" name="libnpmconfig" rev="1.2.1">
  <artifact name="libnpmconfig" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='libnpmconfig', version='1.2.1')
)
libraryDependencies += "org.webjars.npm" % "libnpmconfig" % "1.2.1"
[org.webjars.npm/libnpmconfig "1.2.1"]

Dependencies

compile (3)

Group / Artifact Type Version
org.webjars.npm : figgy-pudding jar [3.5.1,4)
org.webjars.npm : find-up jar [3.0.0,4)
org.webjars.npm : ini jar [1.3.5,2)

Project Modules

There are no modules declared in this project.

libnpmconfig

npm version license Travis Coverage Status

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

Table of Contents

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

Contributing

The npm team enthusiastically welcomes contributions and project participation! There's a bunch of things you can do if you want to contribute! The Contributor Guide outlines the process for community interaction and contribution. Please don't hesitate to jump in if you'd like to, or even ask us questions if something isn't clear.

All participants and maintainers in this project are expected to follow the npm Code of Conduct, and just generally be excellent to each other.

Please refer to the Changelog for project history details, too.

Happy hacking!

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.

org.webjars.npm

npm

node package manager

Versions

Version
1.2.1