https://github.com/zbo14/http2socks
An HTTP proxy that routes traffic through a SOCKS proxy.
https://github.com/zbo14/http2socks
http-proxy pm2 socks
Last synced: 12 months ago
JSON representation
An HTTP proxy that routes traffic through a SOCKS proxy.
- Host: GitHub
- URL: https://github.com/zbo14/http2socks
- Owner: zbo14
- License: mit
- Created: 2019-06-20T15:49:24.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T18:45:32.000Z (over 3 years ago)
- Last Synced: 2025-01-31T14:28:47.023Z (over 1 year ago)
- Topics: http-proxy, pm2, socks
- Language: JavaScript
- Homepage:
- Size: 735 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# http2socks
An HTTP proxy that routes traffic through [socksproxy](https://github.com/zbo14/socksproxy).
Intended for clients that don't support SOCKS.
## Install
Install [nvm](https://github.com/nvm-sh/nvm#installation-and-update) if you haven't already.
Then clone the repo, `cd` into it, `nvm i`, and `npm i`.
## Usage
### Start
**Note:** default values for named parameters are shown.
`HTTP_PORT=17898 SOCKS_HOST="127.0.0.1" SOCKS_PORT=17897 npm start`
### Stop
`npm stop`
### View logs
`npm run log`
## Test
`npm test`
Run the unit tests for the HTTP proxy.
## Lint
`npm lint`
Lint the source and test files.
## Documentation
`npm run doc`
Generate the code documentation and open in browser.
## Contributing
Please do!
If you find a bug, think of an enhancement, or just have a question, feel free to [open an issue](https://github.com/zbo14/http2socks/issues/new). You're also welcome to [create a pull request](https://github.com/zbo14/http2socks/compare/develop...) addressing an issue. You should push your changes to a feature branch and request merge to `develop`.
Make sure linting/tests pass and coverage is 💯 before creating a pull request!