Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

registry-url

Package Overview
Dependencies
1
Maintainers
1
Versions
15
Issues
File Explorer

Advanced tools

registry-url

Get the set npm registry URL

    6.0.1latest

Version published
Maintainers
1
Weekly downloads
10,099,262
decreased by-11.35%

Weekly downloads

Changelog

Source

  • Pin the rc dependency 011b469

https://github.com/sindresorhus/registry-url/compare/v6.0.0...v6.0.1

Readme

Source

registry-url

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/' import registryUrl from '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/' import registryUrl from '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.

Keywords

FAQs

What is registry-url?

Get the set npm registry URL

Is registry-url popular?

The npm package registry-url receives a total of 8,145,330 weekly downloads. As such, registry-url popularity was classified as popular.

Is registry-url well maintained?

We found that registry-url demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 1 open source maintainer collaborating on the project.

Last updated on 22 Jun 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc