Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 797 Bytes

README.md

File metadata and controls

37 lines (22 loc) · 797 Bytes

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(https://registry.npmmirror.com/) 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 Registries

{
	"npm": "https://registry.npmjs.org/",
	"taobao": "https://registry.npmmirror.com/",
	"cnpm": "https://r.cnpmjs.org/"
}

License

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