0.0.2 • Published 8 years ago

unirest-tor v0.0.2

Weekly downloads
10
License
-
Repository
github
Last release
8 years ago

Unirest-tor

This is an extension for unirest. It basically enables unirest, to use tor and its socks5 proxy.

Uses:

Example:

let unirest = require('unirest-tor');

unirest.tor.active = true;
//unirest.tor.newIdentity(); // Changes the ip
//unirest.tor.host = '127.0.0.1'; // Changes the tor host
//unirest.tor.proxyPort = 9050; // Changes the tor proxy port
//unirest.tor.controlPort = 9051; // Changes the controlport of tor

unirest.get('https://api.ipify.org/?format=json')
  .end((data) => {
    console.log(data);
  });
0.0.2

8 years ago

0.0.1

8 years ago