前端真卷,都在不停的造轮子,没办法,都是为了更小更轻便
比如:
也不能说是卷吧,比如造汽车,都有那么多汽车品牌了,为什么小米、华为也要来造汽车,总的来说,可能别人造的有些功能不是很喜欢,或者用着不爽,完了自己还不能自定义,那就造吧!!!
超轻量级 npm 注册表管理器
npm install -g mini-nrm
由于它很小,你也可以不安装直接使用
npx mini-nrm use tencent
mnrm -h
: 显示帮助列表
Usage $ mnrm [options] Options ls, list 列举所有的镜像列表 use <name> 切换镜像 add <name> <registry> [home] 添加自定义镜像 test [-i, --info] 测试所有镜像的响应速度 del, delete, rm, remove <name> 删除自定义镜像 h, -h, help, --help 显示帮助列表 Examples $ mnrm add npm https://registry.npmjs.org/ # or $ mnrm add npm https://registry.npmjs.org/ https://www.npmjs.org $ mnrm use npm $ mnrm list * npm --------- https://registry.npmjs.org/ yarn -------- https://registry.yarnpkg.com/ taobao ------ https://registry.npmmirror.com/ tencent ----- https://mirrors.cloud.tencent.com/npm/ npmMirror --- https://skimdb.npmjs.com/registry/ github ------ https://npm.pkg.github.com/ $ mnrm test * npm --------- 153 ms yarn -------- 175 ms taobao ------ 519 ms tencent ----- 121 ms npmMirror --- 481 ms github ------ 169 ms
import mnrm from 'mini-nrm' console.log(mnrm.list()) // output // * npm --------- https://registry.npmjs.org/ // yarn -------- https://registry.yarnpkg.com/ // taobao ------ https://registry.npmmirror.com/ // tencent ----- https://mirrors.cloud.tencent.com/npm/ // npmMirror --- https://skimdb.npmjs.com/registry/ // github ------ https://npm.pkg.github.com/
![]() | 1 lete OP |
![]() | 2 creanme 2022-10-26 11:48:11 +08:00 推荐一下 grm |
![]() | 4 creanme 2022-10-26 12:06:35 +08:00 |
![]() | 5 lete OP |
6 lllyglh 2022-10-28 10:15:32 +08:00 支持楼主,很方便切换镜像 |