npmrs

1.0.2 • Public • Published

Build Status

Simple utility to setup and switch between npm registries.

Install

npm install switch-registry -g

We can use npmrs in place of switch-registry

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
  • Add default support for popular npm repos npm ----- https://registry.npmjs.org/ cnpm ---- http://r.cnpmjs.org/ taobao -- https://registry.npm.taobao.org/ skimdb -- https://skimdb.npmjs.com/registry yarn ---- https://registry.yarnpkg.com
  • Add testing function to test current entries and response time
  • Add short commands
  • Auto switch
    • Enable Auto switch
    • Disable Auto switch
    • Setup Auto switch for project/folder
    • Remove Auto switch for project/folder
  • Update to ES6

Package Sidebar

Install

npm i npmrs

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

11.7 kB

Total Files

8

Last publish

Collaborators

  • geekab