Big update!Announcing Socket for GitHub 1.0. Learn more
Socket
BlogLoveFAQ
Install
Log in

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,708,017
decreased by-5.96%

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 10,047,170 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. It has 1 open source maintainer collaborating on the project.

Last updated on 22 Jun 2022
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