Skip to content

Latest commit

 

History

History
63 lines (51 loc) · 1.43 KB

File metadata and controls

63 lines (51 loc) · 1.43 KB

Build Status

Simple utility to setup and switch between npm registries. Install

npm install switch-registry -g

Run programm with

switch-registry {command} {args}

Check program usage with

switch-registry usage

Possible commands

  • init ( Initialize required files and entries )
  • usage ( Display this help )
  • ls ( Display list of added registries )
  • list ( Same as ls )
  • add ( Add a new registry )
  • remove ( Remove an existing registry )
  • change ( Change an existing registry )

List all npm registries

switch-registry ls

Add new npm registry to list

switch-registry add <name> <url>

Remove existing npm registry from list

switch-registry remove <name>

Change to another npm registry from list

switch-registry change <name>

Task List

  • Create base setup, file and folder structure
  • Show usage information
  • Show list of existing entries
  • Adding new entries to list
  • Addition should happen for unique url
  • Addition should happen for unique keys
  • Addition should happen for valid urls
  • Removing entries from list
  • Changing existing entries
  • Change registry should look for invalid entries and respond with proper message
  • Changing/Setting up registry