Another version of nrm, just for learning something interesting.
npm i -g nrmm
List all available registries:
$ nrmm 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/
Show current registry:
nrmm current
Switch registry:
$ nrmm use # or npm use <registry>
? Select a registry (Use arrow keys)
> npm
yarn
tencent
cnpm
taobao
npmMirror
Add custom registry:
nrmm add
Delete custom registry:
nrmm del
Edit custom registry:
nrmm edit
Rename registry:
nrmm rename
Test the response time of registry:
nrmm ping [registry]
MIT