Skip to content

可以方便的通过命令行开启/关闭 npm http/https 代理,不支持 socks5。

License

Notifications You must be signed in to change notification settings

woai3c/npm-proxy-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm-proxy-cli

可以方便的通过命令行开启/关闭 npm http/https 代理,不支持 socks5。

使用

安装

npm i -g npm-proxy-cli

设置代理地址

nrp registry [url]
# example: nrp registry http://127.0.0.1:7897

开启代理

nrp open

关闭代理

nrp close

开启代理后可以通过以下命令查看当前代理是否生效

# 查看当前 ip
curl myip.ipip.net
# or
curl cip.cc

About

可以方便的通过命令行开启/关闭 npm http/https 代理,不支持 socks5。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published