Socket
Socket
Sign inDemoInstall

socksified

Package Overview
Dependencies
33
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    socksified

HTTP SOCKS5 support for node.js


Version published
Weekly downloads
2
Maintainers
1
Created
Weekly downloads
 

Readme

Source

HTTP SOCKS5 support for node.js

WARNING: work in progress (for now only SOCKS5 is supported)

Install

$ npm install socksified

TODO

  • Test versions other than Node v0.8.14
  • SOCKS4 support
  • HTTPS support

Example

var http = require('http');
var SocksAgent = require('socksified').SocksAgent;

var socksAgent = new SocksAgent({
  socks_host: '127.0.0.1',
  socks_port: 1080
});

var options = {
    agent: socksAgent,
    host: 'www.google.com',
    port: 80,
    path: '/'
};

http.get(options, function(res) {
    console.log("Got response: " + res.statusCode);
}).on('error', function(e) {
    console.log("Got error: " + e.message);
});

Keywords

FAQs

Last updated on 23 Nov 2012

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