A npm registry registry switching shortcut command.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
.gitignore
.jshintrc
.travis.yml
Gruntfile.js
README.md
config.json
package.json

README.md

npmreg Build Status

A npm registry mirror switching shortcut command.

Getting Started

Install the module with:

npm install npmreg -g

You can easily set registry to taobao mirror(http://registry.npm.taobao.org) with:

npmreg taobao

or set it back to npm(http://registry.npmjs.org/) with:

npmreg npm

Supported Command

Add registry to config file:

npmreg add <newkey> <http://r.example.com/>

Remove registry from config file:

npmreg rm <key>

Supported Registry

{
	"npm":"http://registry.npmjs.org/",
	"taobao":"http://registry.npm.taobao.org/",
	"cnpm":"http://r.cnpmjs.org/",
	"eu":"http://registry.npmjs.eu/",
	"au":"http://registry.npmjs.org.au/",
	"sl":"http://npm.strongloop.com/",
	"nj":"https://registry.nodejitsu.com/"
}

Release History

2014/6/23 11:38:04 Add new command option.

2014/6/10 11:32:11 Add supported registry.

2014/6/9 15:47:01 Switching registry mirror between npmjs and taobao.

License

Copyright (c) 2014 hiwanz. Licensed under the MIT license.