https://github.com/imhype/proxy-cli
A proxy tool for developer
https://github.com/imhype/proxy-cli
cli nodejs proxy
Last synced: 3 months ago
JSON representation
A proxy tool for developer
- Host: GitHub
- URL: https://github.com/imhype/proxy-cli
- Owner: ImHype
- License: mit
- Created: 2017-06-16T10:38:45.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-28T08:46:39.000Z (almost 8 years ago)
- Last Synced: 2025-01-24T11:32:26.391Z (4 months ago)
- Topics: cli, nodejs, proxy
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Proxycli
## How to use?
### Step 1 - Install
```bash
$ npm i -g proxycli
```### Step 2 - Configration
```json
{
"locations": [
{
"host": "m.kaola.com",
"upstream": ["http://127.0.0.1:9999"]
}, {
"host": "www.kaola.com",
"upstream": ["http://127.0.0.1:8888"]
}
]
}
```### Step 3 - Start
```bash
$ proxy # nohup proxy &
```## Help
```
$ proxy -h
Usage: proxy [options]选项:
-c, --config 配置文件路径 [默认值: "proxy.config"]
-s, --secure 是否启用 https [默认值: false]
-v, --version 显示版本号 [布尔]
-H, --help, -h 显示帮助信息 [布尔]示例:
proxy --config ./config.js --secure true
```## Lincese
MIT