JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 11080833
  • Score
    100M100P100Q268453F
  • License MIT

Get the set npm registry URL

Package Exports

  • registry-url

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (registry-url) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

registry-url Build Status

Get the set npm registry URL

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

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

Install

$ npm install --save registry-url

Usage

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

registryUrl(function (err, url) {
    console.log(url);
    //=> https://custom-registry.com/
});

License

MIT © Sindre Sorhus