@zkochan/npm-conf

WebJar for @zkochan/npm-conf

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

zkochan__npm-conf
Last Version

Last Version

2.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

@zkochan/npm-conf
WebJar for @zkochan/npm-conf
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

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

Download zkochan__npm-conf

How to add to project

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

Dependencies

compile (1)

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

Project Modules

There are no modules declared in this project.

@zkochan/npm-conf Build Status

Get the npm config

Install

$ pnpm add @zkochan/npm-conf

Usage

const npmConf = require('@zkochan/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

Versions

Version
2.0.2