# proxymesh

> Node module to use ProxyMesh rotating proxy servers.

Latest version **1.0.1** (published 2017-07-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install proxymesh
pnpm add proxymesh
yarn add proxymesh
bun add proxymesh
```

## 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.0.1 |
| Published | 2017-07-22 |
| First published | 2017-07-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Husam Bilal |
| Maintainers | husam212 |
| Keywords | proxymesh |

## Links

- npm: https://www.npmjs.com/package/proxymesh
- Repository: https://github.com/husam212/proxymesh
- Homepage: https://github.com/husam212/proxymesh#readme
- Issues: https://github.com/husam212/proxymesh/issues
- npm.io page: https://npm.io/package/proxymesh

## Dependencies (2)

- [http-proxy-agent](https://npm.io/package/http-proxy-agent.md) ^2.0.0
- [https-proxy-agent](https://npm.io/package/https-proxy-agent.md) ^2.0.0

## Recent versions

- 1.0.1 (latest) — 2017-07-22
- 1.0.0 — 2017-07-22

## README

# proxymesh
Node module to use ProxyMesh rotating proxy servers.

### Example
```
var ProxyMesh = require('proxymesh');

// Initialize with your ProxyMesh account username and passwod.
var proxy = new ProxyMesh('username', 'password');

// Select which proxy server to use (as in ProxyMesh dashbaord).
proxy.entryNode = 'us.proxymesh.com:1234'

// Optionally, specify the IP address of exit node (using prefer method).
proxy.exitNode = '123.123.123.123'

// Setup the proxy request. Used exit node is passed in the callback.
var ops = url.parse('http://example.com');
var proxyRequest = proxy.request(opts, function(exitNode) {
    console.log(exitNode);
});

// And fire!
proxyRequest.end();
```

Returned `proxyRequest` is a `http.ClientRequest` object, so the response can be handled like the following:
```
proxyRequest.on('response', callback);
```

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