'use strict'; const rc = require('rc'); const registryUrl = scope => { const result = rc('npm', {registry: 'https://registry.npmjs.org/'}); const url = result[`${scope}:registry`] || result.config_registry || result.registry; return url.slice(-1) === '/' ? url : `${url}/`; }; module.exports = registryUrl; // TODO: Remove this for the next major release module.exports.default = registryUrl;
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
index.d.ts | File | 949 B | 0644 |
|
index.js | File | 398 B | 0644 |
|
license | File | 1.08 KB | 0644 |
|
package.json | File | 1.73 KB | 0644 |
|
readme.md | File | 1.16 KB | 0644 |
|