We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm install
mini-nrm
tencent
亮点:
示例代码:
安装
npm install -g mini-nrm
因为它很小,你甚至都不需要安装,可使用 npx 命令直接使用它
npx
npx mini-nrm --help
使用 mnrm --help 查看帮助列表
mnrm --help
Usage $ mnrm [options] Options ls, list List all the registries use <name> Switching the registry add <name> <registry> [home] Add a custom registry test [-i, --info] Test the response time of all registries del, delete, rm, remove <name> Remove a custom registry h, -h, help, --help Show this 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 $ mnrm test -i ┌─────────┬─────────────┬───────┬───────────┬─────────┬─────────┬────────────────┬──────────┬──────────────────────────────────────────┐ │ (index) │ name │ code │ total │ DNS │ TCP │ start_transfer │ redirect │ effective │ ├─────────┼─────────────┼───────┼───────────┼─────────┼─────────┼────────────────┼──────────┼──────────────────────────────────────────┤ │ 0 │ 'npm' │ '000' │ 'Timeout' │ '27ms' │ '0ms' │ '0ms' │ '0ms' │ 'https://registry.npmjs.org/' │ │ 1 │ 'yarn' │ '000' │ 'Timeout' │ '32ms' │ '0ms' │ '0ms' │ '0ms' │ 'https://registry.yarnpkg.com/' │ │ 2 │ 'taobao' │ '200' │ '654ms' │ '41ms' │ '214ms' │ '653ms' │ '0ms' │ 'https://registry.npmmirror.com/' │ │ 3 │ 'tencent' │ '200' │ '1159ms' │ '251ms' │ '452ms' │ '1159ms' │ '0ms' │ 'https://mirrors.cloud.tencent.com/npm/' │ │ 4 │ 'npmMirror' │ '000' │ 'Timeout' │ '22ms' │ '0ms' │ '0ms' │ '0ms' │ 'https://skimdb.npmjs.com/registry/' │ │ 5 │ 'github' │ '200' │ '2302ms' │ '287ms' │ '775ms' │ '2301ms' │ '1179ms' │ 'https://github.com/features/packages' │ └─────────┴─────────────┴───────┴───────────┴─────────┴─────────┴────────────────┴──────────┴──────────────────────────────────────────┘
截图:
后续更新计划:近期测试完毕后即可发布 v1.0.0 版本
The text was updated successfully, but these errors were encountered:
No branches or pull requests
推荐项目
npm install
时安装特别慢,如今你可以使用mini-nrm
快速切换镜像安装项目依赖,比如切换至tencent
等国内镜像亮点:
示例代码:
安装
因为它很小,你甚至都不需要安装,可使用
npx
命令直接使用它使用
mnrm --help
查看帮助列表截图:
后续更新计划:近期测试完毕后即可发布 v1.0.0 版本
The text was updated successfully, but these errors were encountered: