You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

6 line
231B

  1. module.exports = function (scope, npmrc) {
  2. var rc = npmrc || require('rc')('npm', { registry: 'https://registry.npmjs.org/' })
  3. var url = rc[scope + ':registry'] || rc.registry
  4. return url.slice(-1) === '/' ? url : url + '/'
  5. }