Socket
Book a DemoInstallSign in
Socket

tor-master

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tor-master

spawn tor demons and make requests over tor

1.3.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

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.

Keywords

tor

FAQs

Package last updated on 28 Mar 2019

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.