Switch between npm registries
$ npm install registry-swap
const registrySwap = require('registry-swap');
registrySwap.add('https://foobar.unicorn');
registrySwap.set('https://foobar.unicorn');
registrySwap.delete('https://foobar.unicorn');
registrySwap.list();
// Set {'https://registry.npmjs.org/', ...}
Add a new registry. Returns a Set
with the saved registries.
Set the active registry. Will be added if it doesn't exist.
Delete a registry. Returns a Set
with the saved registries.
Type: string
URL to registry.
Returns a Set
with the saved registries.
$ npm install --global registry-swap
$ registry-swap --help
Usage
$ registry-swap
MIT © Kevin Martensson