Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

registry-url

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

registry-url

Get the set npm registry URL

  • 6.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11M
increased by5.98%
Maintainers
1
Weekly downloads
 
Created

What is registry-url?

The registry-url npm package is used to get the set npm registry URL. It is particularly useful when working with npm configurations that may have different registry URLs set for different scopes or projects. This package simplifies the process of retrieving the registry URL that npm will use in the current context.

What are registry-url's main functionalities?

Get the default registry URL

This feature allows you to retrieve the default npm registry URL that is configured on your system.

const registryUrl = require('registry-url');
console.log(registryUrl()); // Outputs the default registry URL

Get the registry URL for a specific scope

This feature allows you to retrieve the npm registry URL for a specific scope, which can be different from the default registry URL.

const registryUrl = require('registry-url');
console.log(registryUrl('@my-scope')); // Outputs the registry URL for the '@my-scope' if configured, otherwise the default.

Other packages similar to registry-url

Keywords

FAQs

Package last updated on 22 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc