node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

registry-switch

registry-switch

Utility to make it easy to switch between npm registries.

Install

npm install registry-switch -g

Usage

Run the programm with

registry-switch {command} {args}

-- or short version --

regsw {command} {args}

Accepted commands:

Command Description
list Display a list of avaliable registries
add Add a new registry
use A a registry
remove Removes a registry

list

Provides a listing of the registries you have in your .npmregs folder.

registry-switch list

add

Adds a new registry to you .npmregs folder. You can use the optional --name switch to specify a name for the registry e.g. npm-public. The default name will be derived from the url.

registry-switch add [--name reg-name] url

use

Uses a registry in your .npmregs folder by crreating a sym link from $HOME/.npmrc to the appropriate file in .npmregs. Name should be the name of a file that exists in ~/.npmregs

registry-switch use name

remove

Deletes a registry file from your .npmregs folder

registry-switch remove name