gift-card-server/node_modules/registry-url/index.js
Rodrigo Pedroso 3ac017a5ad Commit project
2019-06-19 10:46:14 -04:00

6 lines
228 B
JavaScript

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