1.0.1 • Published 5 months ago
npm-change v1.0.1
支持的镜像源 🌐
国内镜像 🇨🇳
- 淘宝 NPM 镜像 https://registry.npmmirror.com/
- 腾讯云 NPM 镜像 https://mirrors.cloud.tencent.com/npm/
- 华为云 NPM 镜像 https://repo.huaweicloud.com/repository/npm/
- 清华大学 NPM 镜像 https://mirrors.tuna.tsinghua.edu.cn/npm/
- 中科大 NPM 镜像 https://npmreg.proxy.ustclug.org/
- 上海交大 NPM 镜像 https://mirrors.sjtug.sjtu.edu.cn/npm/
官方源 🌍
- NPM 官方源 https://registry.npmjs.org/
- Yarn 官方源 https://registry.yarnpkg.com/
- Node.js 官方源 https://nodejs.org/dist/
使用方法 🎯
安装
npm install -g npm-change
查看所有命令
npm-change --help
查看当前使用的镜像源
npm-change ls
切换镜像源
npm-change change
将显示所有可用的镜像源列表,使用方向键选择后回车确认即可切换。
测试所有镜像源速度
npm-change speed
会测试所有镜像源的响应速度,并按速度排序显示。测试完成后可选择是否切换到最快的镜像源。
速度测试说明 🚄
速度测试结果使用不同颜色标识:
- 🟢 绿色: < 1000ms(极速)
- 🟡 黄色: 1000ms - 2000ms(正常)
- 🔴 红色: > 2000ms(较慢)
作者 👨💻
博客 📝
更新日志 📝
v1.0.0
- 🎉 首次发布
- ✨ 支持多个镜像源切换
- 🚀 支持镜像源速度测试
- 💄 优化交互界面