Commit project
This commit is contained in:
parent
28471965a0
commit
3ac017a5ad
1030 changed files with 94062 additions and 0 deletions
6
node_modules/registry-url/index.js
generated
vendored
Normal file
6
node_modules/registry-url/index.js
generated
vendored
Normal file
|
@ -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 + '/';
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue