Socket
Socket
Sign inDemoInstall

simple-pc-proxy

Package Overview
Dependencies
3
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    simple-pc-proxy

A nodejs web proxy server to proxy over socks


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

一个简单的http_proxy服务器

基于Nodejs的简单http_proxy,给ss(r)socks服务做代理比较有用。

安装

yarn add simple-web-proxy

开发

const proxyServer = require('simple-web-proxy')
// 开启
const server = proxyServer({
  listenHost: 'localhost',
  listenPort: 12333,
  socksHost: 'localhost',
  socksPort: 1080,
  socksUsername,
  socksPassword
})
// 关闭
server.close()
// 事件监听
server.on('request:error', console.log)
server.on('request:success', console.log)
server.on('connect:error', console.log)
server.on('connect:success', console.log)

使用

export http_proxy="http://127.0.0.1:12333"
export https_proxy="http://127.0.0.1:12333"
curl https://twitter.com

FAQs

Last updated on 18 Nov 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc