# nrm-ng

> The next generation of NPM registry management

Latest version **1.0.0-beta.2** (published 2023-09-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install nrm-ng
pnpm add nrm-ng
yarn add nrm-ng
bun add nrm-ng
```

Provides the command `nrm-ng`.

## 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.0.0-beta.2 |
| Published | 2023-09-26 |
| First published | 2023-08-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 8.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 2 |
| Author | CaptainOfPhB |
| Maintainers | captainofphb |
| Keywords | npm, nrm, npm registry, npm registry selector, npm registry management, npm registry next generation |

## Links

- npm: https://www.npmjs.com/package/nrm-ng
- Repository: https://github.com/CaptainOfPhB/nrm-ng
- Homepage: https://github.com/CaptainOfPhB/nrm-ng#readme
- Issues: https://github.com/CaptainOfPhB/nrm-ng/issues
- npm.io page: https://npm.io/package/nrm-ng

## Dependencies (3)

- [ini](https://npm.io/package/ini.md) ^4.1.1
- [commander](https://npm.io/package/commander.md) ^11.0.0
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.12

## Recent versions

- 1.0.0-beta.2 (latest) — 2023-09-26
- 1.0.0-beta.1 — 2023-08-16

## README

# nrm-ng

The NPM registry management, the next generation of [nrm](https://github.com/Pana/nrm).

## Why `nrm-ng`?

- **Fast and easy to use**.
- **More minimum package size**. `nrm-ng` removes a bunch of useless functions from `nrm` that were built into `npm`.
- **Registry is always up-to-date**. The internal registry list is hosted on [Deno Deploy](https://deno.com/deploy), so if there are any changes to the remote registry list, you can conveniently keep the local registry list up-to-date with the `nrm update` command instead of installing a new version.

## Installation

```bash
# npm
npm i -g nrm-ng
# yarn
yarn global add nrm-ng
# pnpm
pnpm add -g nrm-ng
```

## Usage

```bash
# init nrm-ng
nrm-ng init

# list registry
nrm-ng ls

# show the current registry
nrm-ng current

# add registry
nrm-ng add gh https://npm.pkg.github.com

# switch registry
nrm-ng use gh

# remove registry
nrm-ng rm gh

# ping registry response speed
nrm-ng ping

# keep the registry up-to-date
nrm-ng update
```

If you are using `nrm` and want to switch to `nrm-ng`, set up an alias in your `.bashrc` or `.zshrc` file.

```bash
alias nrm='nrm-ng'
```

## Supported registry

Refer to [`registry.json`](./registry.json).

```json
{
  "npm": {
    "home": "https://www.npmjs.org",
    "registry": "https://registry.npmjs.org/"
  },
  "yarn": {
    "home": "https://yarnpkg.com",
    "registry": "https://registry.yarnpkg.com/"
  },
  "tencent": {
    "home": "https://mirrors.cloud.tencent.com/npm/",
    "registry": "https://mirrors.cloud.tencent.com/npm/"
  },
  "cnpm": {
    "home": "https://cnpmjs.org",
    "registry": "https://r.cnpmjs.org/"
  },
  "taobao": {
    "home": "https://npmmirror.com",
    "registry": "https://registry.npmmirror.com/"
  },
  "npmMirror": {
    "home": "https://skimdb.npmjs.com/",
    "registry": "https://skimdb.npmjs.com/registry/"
  }
}
```

## License

[MIT](LICENSE)

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