npm-conf

WebJar for npm-conf

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

npm-conf
Last Version

Last Version

1.1.3
Release Date

Release Date

Type

Type

jar
Description

Description

npm-conf
WebJar for npm-conf
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/kevva/npm-conf

Download npm-conf

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : config-chain jar [1.1.11,2)
org.webjars.npm : pify jar [3.0.0,4)

Project Modules

There are no modules declared in this project.

npm-conf Build Status

Get the npm config

Install

$ npm install npm-conf

Usage

const npmConf = require('npm-conf');

const conf = npmConf();

conf.get('prefix')
//=> //=> /Users/unicorn/.npm-packages

conf.get('registry')
//=> https://registry.npmjs.org/

To get a list of all available npm config options:

$ npm config list --long

API

npmConf()

Returns the npm config.

npmConf.defaults

Returns the default npm config.

License

MIT © Kevin Mårtensson

Versions

Version
1.1.3