Sha256: 7a417234a6b1dcfba13d64fe6130ead1bfb42225c25195938f0ae696c518d75f
Contents?: true
Size: 333 Bytes
Versions: 33
Compression:
Stored size: 333 Bytes
Contents
const npmConf = require('@pnpm/npm-conf') module.exports = function getRegistryUrl (scope, npmrc) { const rc = npmrc ? { config: { get: (key) => npmrc[key] } } : npmConf() const url = rc.config.get(scope + ':registry') || rc.config.get('registry') || npmConf.defaults.registry return url.slice(-1) === '/' ? url : url + '/' }
Version data entries
33 entries across 33 versions & 1 rubygems