registry-switch

0.0.5 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.5
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.5
    0
  • 0.0.4
    1
  • 0.0.3
    1
  • 0.0.1
    1

Package Sidebar

Install

npm i registry-switch

Weekly Downloads

3

Version

0.0.5

License

MIT

Last publish

Collaborators

  • gangleri