registry-url

WebJar for registry-url

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

registry-url
Last Version

Last Version

5.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

registry-url
WebJar for registry-url
Project URL

Project URL

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

Source Code Management

https://github.com/sindresorhus/registry-url

Download registry-url

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : rc jar [1.2.8,2)

Project Modules

There are no modules declared in this project.

registry-url Build Status

Get the set npm registry URL

It's usually https://registry.npmjs.org/, but it's configurable.

Use this if you do anything with the npm registry as users will expect it to use their configured registry.

Install

$ npm install registry-url

Usage

# .npmrc
registry = 'https://custom-registry.com/'
const registryUrl = require('registry-url');

console.log(registryUrl());
//=> 'https://custom-registry.com/'

It can also retrieve the registry URL associated with an npm scope.

# .npmrc
@myco:registry = 'https://custom-registry.com/'
const registryUrl = require('registry-url');

console.log(registryUrl('@myco'));
//=> 'https://custom-registry.com/'

If the provided scope is not in the user's .npmrc file, then registry-url will check for the existence of registry, or if that's not set, fallback to the default npm registry.


Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

Versions

Version
5.1.0
3.1.0
3.0.3
1.0.0