1.3.0 • Published 6 years ago

tor-master v1.3.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Tor-Master - control your tor demon and send requests

description

Starts a tor demon and sends requests over tor.

Make save requests over a tor.

requires tor installed and be in your path

Example

const {createTorAgent} = require('tor-master');

createTorAgent( msg=>console.log(msg) ).then( agent=> {
  return agent.get('https://api.ipify.org') //uses superagent
    .then( ({body}) => console.log(body))
    .then( () => agent.get('https://api.ipify.org'))
    .then( ({body}) => console.log(body))
    .then( () => agent.changeIP())
    .then( () => agent.get('https://api.ipify.org'))
    .then( ({body}) => console.log(body))
    .then( () => agent.end()); // kill the tor demon
}).catch( e => console.log(e));

Available methods

get, post, put, delete

get, post, put and delete return are monkeypatched superagent methods. More information can be found here

changeIP

Changes the Tor exit node and returns a promise containing a string message. Multiple calls to changeIP coalesce to one.

1.3.0

6 years ago

1.2.0

6 years ago

1.1.0

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago