# tor-master

> spawn tor demons and make requests over tor

Latest version **1.3.0** (published 2019-03-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install tor-master
pnpm add tor-master
yarn add tor-master
bun add tor-master
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.0 |
| Published | 2019-03-28 |
| First published | 2017-12-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 28.6 KB |
| Known vulnerabilities | 0 (+3 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Gaetano Checinski |
| Maintainers | nikhedonia |
| Keywords | tor, request, annonymous |

## Links

- npm: https://www.npmjs.com/package/tor-master
- Repository: https://github.com/nikhedonia/tor-master
- Homepage: https://github.com/nikhedonia/tor-master#readme
- Issues: https://github.com/nikhedonia/tor-master/issues
- npm.io page: https://npm.io/package/tor-master

## Dependencies (5)

- [tmp](https://npm.io/package/tmp.md) 0.0.33
- [uuid](https://npm.io/package/uuid.md) ^3.1.0
- [openports](https://npm.io/package/openports.md) 0.0.1
- [superagent](https://npm.io/package/superagent.md) ^4.1.0
- [superagent-proxy](https://npm.io/package/superagent-proxy.md) ^2.0.0

## Alternatives

- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@regle/core](https://npm.io/package/@regle/core.md) — 47.0K weekly downloads
- [typeof-arguments](https://npm.io/package/typeof-arguments.md) — 12.5K weekly downloads
- [@lokalise/projects-engine-contracts](https://npm.io/package/@lokalise/projects-engine-contracts.md) — 978 weekly downloads
- [@osjwnpm/nam-laboriosam-quibusdam](https://npm.io/package/@osjwnpm/nam-laboriosam-quibusdam.md) — 70 weekly downloads

## Recent versions

- 1.3.0 (latest) — 2019-03-28
- 1.2.0 — 2019-03-27
- 1.1.0 — 2018-01-05
- 1.0.5 — 2018-01-01
- 1.0.4 — 2018-01-01
- 1.0.3 — 2017-12-28
- 1.0.2 — 2017-12-28
- 1.0.1 — 2017-12-28
- 1.0.0 — 2017-12-28

## README

# 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

```js

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](https://github.com/visionmedia/superagent)

## changeIP

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

---
_Source: https://npm.io/package/tor-master · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
