npmconf

WebJar for npmconf

License

License

ISC
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

npmconf
Last Version

Last Version

2.1.2
Release Date

Release Date

Type

Type

jar
Description

Description

npmconf
WebJar for npmconf
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/npm/npmconf

Download npmconf

How to add to project

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

Dependencies

compile (9)

Group / Artifact Type Version
org.webjars.npm : osenv jar [0.1.0,0.2)
org.webjars.npm : once jar [1.3.0,1.4)
org.webjars.npm : ini jar [1.2.0,2)
org.webjars.npm : config-chain jar [1.1.8,1.2)
org.webjars.npm : uid-number jar 0.0.5
org.webjars.npm : semver jar [2,3),[3,4),[4,5)
org.webjars.npm : inherits jar [2.0.0,2.1)
org.webjars.npm : nopt jar [3.0.1,3.1)
org.webjars.npm : mkdirp jar [0.5.0,0.6)

Project Modules

There are no modules declared in this project.

npmconf

THIS PACKAGE IS DEPRECATED

This package's functionality has been reintegrated directly into npm. There have been many changes made to npm's configuration since the last version of this package was published. It should not be considered a source of truth for npm configuration any longer, and npm itself is the best tool to use to manage its configuration. Do not use this package.

The config thing npm uses

If you are interested in interacting with the config settings that npm uses, then use this module.

However, if you are writing a new Node.js program, and want configuration functionality similar to what npm has, but for your own thing, then I'd recommend using rc, which is probably what you want.

If I were to do it all over again, that's what I'd do for npm. But, alas, there are many systems depending on many of the particulars of npm's configuration setup, so it's not worth the cost of changing.

USAGE

var npmconf = require('npmconf')

// pass in the cli options that you read from the cli
// or whatever top-level configs you want npm to use for now.
npmconf.load({some:'configs'}, function (er, conf) {
  // do stuff with conf
  conf.get('some', 'cli') // 'configs'
  conf.get('username') // 'joebobwhatevers'
  conf.set('foo', 'bar', 'user')
  conf.save('user', function (er) {
    // foo = bar is now saved to ~/.npmrc or wherever
  })
})
org.webjars.npm

npm

node package manager

Versions

Version
2.1.2
2.1.1
2.0.9
2.0.2
2.0.1