Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cgr

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cgr

yarn & npm registry manager can help you easy and fast switch between different registries, now include: cnpm, taobao, nj(nodejitsu), rednpm, edunpm

  • 1.2.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-92.19%
Maintainers
1
Weekly downloads
 
Created
Source

cgr -- change registry | yarn & npm registry manager

npm

cgr can help you easy and fast switch between different npm or yarn registries, now include: npm, cnpm, taobao, yarn.

Install

$ npm install -g cgr

Example

$ cgr ls  //* for both

  npm ---- https://registry.npmjs.org/
  cnpm --- http://r.cnpmjs.org/
* taobao - https://registry.npm.taobao.org/
  yarn --- https://registry.yarnpkg.com/

$ cgr ls  //N for npm, Y for yarn

N npm ---- https://registry.npmjs.org/
  cnpm --- http://r.cnpmjs.org/
Y taobao - https://registry.npm.taobao.org/
  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/

Usage

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
    help                         Print this help

  Options:

    -h, --help     output usage information
    -V, --version  output the version number

Registries

Notice

When you use an other registry, you can not use the publish command.

LICENSE

MIT

Keywords

FAQs

Package last updated on 06 Dec 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc