Sha256: 2372ae10b110f36a2024f56f06d66277344c320855726014b3d3cc4112df54b5
Contents?: true
Size: 275 Bytes
Versions: 25
Compression:
Stored size: 275 Bytes
Contents
import rc from 'rc'; export default function 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}/`; }
Version data entries
25 entries across 25 versions & 1 rubygems