socks5-https-client

SOCKS v5 HTTPS client.

npm install socks5-https-client
18 downloads in the last day
44 downloads in the last week
182 downloads in the last month

SOCKS5 HTTPS Client

Build Status

SOCKS v5 HTTPS client implementation in JavaScript for Node.js.

var shttps = require('socks5-https-client');

shttps.get({
    hostname: 'encrypted.google.com',
    path: '/',
    rejectUnauthorized: false
}, function(res) {
    res.setEncoding('utf8');
    res.on('readable', function() {
        console.log(res.read()); // Log response to console.
    });
});

Using with Tor

Works great for making HTTPS requests through Tor (see bundled example).

HTTP

This client only provides support for making HTTPS requests. See socks5-http-client for an HTTP implementation.

License

Copyright © 2013 Matthew Caruana Galizia, licensed under an MIT license.

npm loves you