1.0.5 • Published 5 months ago
codernpm v1.0.5
这是一个切换镜像源的库
_ooOoo_
o8888888o
88" . "88
(| -_- |)
O\\ = /O
____/`---'\\____
.' \\\\| |// \`.
/ \\\\||| : |||// \\
/ _||||| -:- |||||- \\
| | \\\\\\ - /// | |
| \\_| ''\\---/'' | |
\\ .-\\__ \`-\` ___/-. /
___\`. .' /--.--\\ \`. . __
."" '< \`.___\\_<|>_/___.' >'"".
| | : \`- \\\`.;\`\\ _ /\`;.\`/ - \` : | |
\\ \\ \`-. \\_ __\\ /__ _/ .-\` / /
======\`-.____\`-.___\\_____/___.-\`____.-'======
\`=---='
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
佛祖保佑 永无BUG
安装建议加上-g
npm i codernpm -g
codernpm ls 查看目前源
npm------- https://registry.npmjs.org/
yarn------ https://registry.yarnpkg.com/
tencent--- https://mirrors.cloud.tencent.com/npm/
cnpm------ https://r.cnpmjs.org/
taobao---- https://registry.npmmirror.com/
npmMirror- https://skimdb.npmjs.com/registry/
codernpm use 切换源
选择你要切换的源
codernpm current 查看当前源
当前源: npm
codernpm add 添加源
- 输入添加的名称
- 输入源地址
codernpm ping 测试源
? 请选择镜像 cnpm 响应时长: 1635ms
codernpm delete 删除自定义源
add 添加的源都可以删除
codernpm rename 重命名
自定义添加的源都可以进行重新命名
codernpm edit 编辑自定义镜像地址
用法 Usage
Usage: codernpm options
Options:
-V, --version 输出版本号
-h, --help 显示帮助信息
Commands: ls 查看镜像
use 请选择镜像
current 查看当前源
ping 测试镜像地址速度
add 自定义镜像
delete 删除自定义的源
rename 重命名
edit 编辑自定义镜像地址
help command 显示命令帮助信息