仪表盘
版本库
文件存储
活动
搜索
登录
蔡年峰
/
HM_StandardPda-Browse
概况
操作记录
提交次数
目录
文档
分支
对比
blame
|
历史
|
原始文档
来料检优化
xwt
2025-07-09
f4711865a8ea9566910bfcc6daa31795b89272a7
[~cnf/HM_StandardPda-Browse.git]
/
node_modules
/
registry-url
/
index.js
1
2
3
4
5
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 + '/';
};