
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
yarn & npm registry manager can help you easy and fast switch between different registries, now include: cnpm, taobao, nj(nodejitsu), rednpm, edunpm
cgr can help you easy and fast switch between different npm or yarn registries,
now include: npm, cnpm, taobao, yarn.
$ npm install -g cgr
$ cgr ls //* for both
npm ---- https://registry.npmjs.org/
cnpm --- http://r.cnpmjs.org/
* taobao - https://registry.npmmirror.com/
yarn --- https://registry.yarnpkg.com/
$ cgr ls //N for npm, Y for yarn, P for pnpm
N npm ---- https://registry.npmjs.org/
cnpm --- http://r.cnpmjs.org/
Y taobao - https://registry.npmmirror.com/
yarn --- https://registry.yarnpkg.com/
$ cgr use cnpm //both switch registry to cnpm
npm registry has been set to: http://r.cnpmjs.org/
yarn registry has been set to: http://r.cnpmjs.org/
$ cgr use cnpm y //yarn switch registry to cnpm
yarn registry has been set to: http://r.cnpmjs.org/
$ cgr use cnpm n //npm switch registry to cnpm
npm registry has been set to: http://r.cnpmjs.org/
$ cgr on pnpm //enable pnpm switch registry
cgr enable pnpm success
$ cgr off pnpm //disable pnpm switch registry
cgr disable pnpm success
$ cgr use cnpm p //pnpm switch registry to cnpm
pnpm registry has been set to: http://r.cnpmjs.org/
Usage: cgr [options] [command]
Commands:
ls List all the registries
use <registry> [type] Change registry to registry
add <registry> <url> [home] Add one custom registry
del <registry> Delete one custom registry
test [registry] Show the response time for one or all registries
on [type] Enable pnpm or other type
off [type] Disable pnpm or other type
help Print this help
Options:
-h, --help output usage information
-V, --version output the version number
When you use an other registry, you can not use the publish command.
MIT
FAQs
yarn & npm registry manager can help you easy and fast switch between different registries, now include: cnpm, taobao, nj(nodejitsu), rednpm, edunpm
We found that cgr demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.