registry-url

WebJar for registry-url

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

registry-url
Последняя версия

Последняя версия

5.1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

registry-url
WebJar for registry-url
Ссылка на сайт

Ссылка на сайт

https://www.webjars.org
Система контроля версий

Система контроля версий

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

Скачать registry-url

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : rc jar [1.2.8,2)

Модули Проекта

Данный проект не имеет модулей.

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.

Версии библиотеки

Версия
5.1.0
3.1.0
3.0.3
1.0.0