Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/woai3c/npm-proxy-cli
可以方便的通过命令行开启/关闭 npm http/https 代理,不支持 socks5。
https://github.com/woai3c/npm-proxy-cli
Last synced: 7 days ago
JSON representation
可以方便的通过命令行开启/关闭 npm http/https 代理,不支持 socks5。
- Host: GitHub
- URL: https://github.com/woai3c/npm-proxy-cli
- Owner: woai3c
- License: mit
- Created: 2022-11-08T16:42:31.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-30T06:40:07.000Z (4 months ago)
- Last Synced: 2024-09-30T12:10:40.408Z (about 2 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# npm-proxy-cli
可以方便的通过命令行开启/关闭 npm http/https 代理,不支持 socks5。
## 使用
安装
```sh
npm i -g npm-proxy-cli
```
设置代理地址
```shell
nrp registry [url]
# example: nrp registry http://127.0.0.1:7897
```
开启代理
```sh
nrp open
```
关闭代理
```sh
nrp close
```
开启代理后可以通过以下命令查看当前代理是否生效
```sh
# 查看当前 ip
curl myip.ipip.net
# or
curl cip.cc
```