Socket
Book a DemoInstallSign in
Socket

registry-swap

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

registry-swap

Switch between npm registries

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

registry-swap Build Status

Switch between npm registries

Install

$ npm install registry-swap

Usage

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/', ...}

API

registrySwap.add(registry)

Add a new registry. Returns a Set with the saved registries.

registrySwap.set(registry)

Set the active registry. Will be added if it doesn't exist.

registrySwap.delete(registry)

Delete a registry. Returns a Set with the saved registries.

registry

Type: string

URL to registry.

registrySwap.list()

Returns a Set with the saved registries.

CLI

$ npm install --global registry-swap
$ registry-swap --help

  Usage
    $ registry-swap

License

MIT © Kevin Martensson

Keywords

cli-app

FAQs

Package last updated on 30 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts