Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wangrongding/prm-cli

๐Ÿงฉ ๅฟซ้€Ÿๅˆ‡ๆขๅŒ…็ฎก็†ๅทฅๅ…ท็š„้•œๅƒๆบใ€‚(Quickly switch the registry of the package management tool.)
https://github.com/wangrongding/prm-cli

cnpm npm package-manager-tool pnpm registry taobao yarn

Last synced: 3 months ago
JSON representation

๐Ÿงฉ ๅฟซ้€Ÿๅˆ‡ๆขๅŒ…็ฎก็†ๅทฅๅ…ท็š„้•œๅƒๆบใ€‚(Quickly switch the registry of the package management tool.)

Awesome Lists containing this project

README

        

# PRM -- package manager's registry manager

`prm` can help you easy and fast switch between different npm registries,
now include: `npm`, `cnpm`, `taobao`, `nj(nodejitsu)`, `rednpm`, `yarn`, `npmMirror`, `edunpm`.

> ๆœฌ้กน็›ฎ่ขซๅˆŠ็™ปๅœจ้˜ฎไธ€ๅณฐ่€ๅธˆ็š„็ง‘ๆŠ€็ˆฑๅฅฝ่€…ๅ‘จๅˆŠ็ฌฌ [445](https://www.ruanyifeng.com/blog/2023/03/weekly-issue-245.html) ๆœŸใ€‚

## Install

```sh
npm i prm-cli -g
```

## Example

```sh
# List all registries
prm ls
```

![](https://assets.fedtop.com/picbed/202208291120504.png)

```sh
# Select a registry that you need to switch
prm use taobao
```

![](https://assets.fedtop.com/picbed/202208291122544.png)

```sh
# Show response time for specific or all registries
prm test
# or
prm test [registry]
```

![](https://assets.fedtop.com/picbed/202208291517751.png)

## Dev

```sh
sudo npm link
```