# registry-swap

> Switch between npm registries

Latest version **1.1.0** (published 2017-06-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install registry-swap
pnpm add registry-swap
yarn add registry-swap
bun add registry-swap
```

Provides the command `registry-swap`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2017-06-30 |
| First published | 2017-06-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 7 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Kevin Martensson |
| Maintainers | kevva |
| Keywords | cli-app, cli |

## Links

- npm: https://www.npmjs.com/package/registry-swap
- Repository: https://github.com/kevva/registry-swap
- Homepage: https://github.com/kevva/registry-swap#readme
- Issues: https://github.com/kevva/registry-swap/issues
- npm.io page: https://npm.io/package/registry-swap

## Dependencies (7)

- [conf](https://npm.io/package/conf.md) ^1.1.2
- [meow](https://npm.io/package/meow.md) ^3.7.0
- [chalk](https://npm.io/package/chalk.md) ^2.0.1
- [execa](https://npm.io/package/execa.md) ^0.7.0
- [inquirer](https://npm.io/package/inquirer.md) ^3.1.1
- [registry-url](https://npm.io/package/registry-url.md) ^3.1.0
- [normalize-url](https://npm.io/package/normalize-url.md) ^1.9.1

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2017-06-30
- 1.0.0 — 2017-06-30
- 0.0.0 — 2017-06-30

## README

# registry-swap [![Build Status](https://travis-ci.org/kevva/registry-swap.svg?branch=master)](https://travis-ci.org/kevva/registry-swap)

> Switch between npm registries


## Install

```
$ npm install registry-swap
```


## Usage

```js
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](https://github.com/kevva)

---
_Source: https://npm.io/package/registry-swap · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
