0.0.3 • Published 2 years ago

@envov/proxy v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

iShot2022-04-14_17.03.39.png

install

npm install @envov/proxy -g 

1、Create any file anywhere, for example:

touch ./proxy.ini

2、 Simple rules in it

[:888/typicode]
target=https://jsonplaceholder.typicode.com
# proxy https://jsonplaceholder.typicode.com on http://127.0.0.1:888/typicode

[:999/test]
target=https://jsonplaceholder.typicode.com/posts/1
# proxy https://jsonplaceholder.typicode.com/posts/1 on http://127.0.0.1:999/test

[:888]
target=https://jsonplaceholder.typicode.com/posts/1
# proxy https://jsonplaceholder.typicode.com/posts/1 on http://127.0.0.1:888

3、proxy

proxy ./proxy.ini

others

The weight of the configuration file is:

  • first:proxy configuration-file.ini
  • second:proxy.ini file under proxy command directory
  • third:~/proxy.ini