npmreg

0.4.1 • Public • Published

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 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.

Package Sidebar

Install

npm i npmreg

Weekly Downloads

0

Version

0.4.1

License

MIT

Unpacked Size

3.91 kB

Total Files

4

Last publish

Collaborators

  • hiwanz