Skip to content

hiwanz/npmreg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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(https://registry.npmjs.org/) with:

npmreg npm

Supported Command

Add registry to config file:

npmreg add <newkey> <https://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.

About

A npm registry registry switching shortcut command.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published