diff options
Diffstat (limited to 'deps/npm/node_modules/registry-url/index.js')
-rw-r--r-- | deps/npm/node_modules/registry-url/index.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/deps/npm/node_modules/registry-url/index.js b/deps/npm/node_modules/registry-url/index.js new file mode 100644 index 0000000000..5502a235ab --- /dev/null +++ b/deps/npm/node_modules/registry-url/index.js @@ -0,0 +1,6 @@ +'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 + '/'; +}; |