Skip to content
This repository was archived by the owner on Feb 19, 2024. It is now read-only.

Latest commit

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

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

varhttp=require('http');varSocksAgent=require('socksified').SocksAgent;varsocksAgent=newSocksAgent({socks_host: '127.0.0.1',socks_port: 1080});varoptions={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);});

About

HTTP SOCKS support for node.js

Resources

Stars

19 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages