# punch-proxy-manager

> Module for get proxies.

Latest version **0.0.13** (published 2016-10-28) · 0 weekly downloads

## Install

```sh
npm install punch-proxy-manager
pnpm add punch-proxy-manager
yarn add punch-proxy-manager
bun add punch-proxy-manager
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.13 |
| Published | 2016-10-28 |
| First published | 2016-08-11 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | punchagency |

## Links

- npm: https://www.npmjs.com/package/punch-proxy-manager
- npm.io page: https://npm.io/package/punch-proxy-manager

## Dependencies (7)

- [repeat](https://npm.io/package/repeat.md) 0.0.6
- [cheerio](https://npm.io/package/cheerio.md) ^0.20.0
- [request](https://npm.io/package/request.md) ^2.74.0
- [bluebird](https://npm.io/package/bluebird.md) ^3.4.1
- [nightmare](https://npm.io/package/nightmare.md) ^2.6.1
- [punch-utils](https://npm.io/package/punch-utils.md) 0.0.4
- [request-promise](https://npm.io/package/request-promise.md) ^4.1.1

## Recent versions

- 0.0.13 (latest) — 2016-10-28
- 0.0.12 — 2016-10-28
- 0.0.11 — 2016-10-19
- 0.0.10 — 2016-10-19
- 0.0.8 — 2016-09-22
- 0.0.6 — 2016-09-21
- 0.0.5 — 2016-08-30
- 0.0.4 — 2016-08-30
- 0.0.3 — 2016-08-30
- 0.0.2 — 2016-08-30
- 0.0.1 — 2016-08-11

## README

# punch-proxy-manager
Return proxy

## Config
*  refreshTime - email address that used to send emails
*  services
*     include - array of proxy services to use
*     exclude - array of proxy services to not use
*
*     valid valuesGIMMI_PROXY, HIDE_MY_ASS, IN_CLOCK, PROXY_SERVER_LIST, UK_PROXY, US_PROXY


## Method
* get - get a valid proxy
* blacklist - mark proxy as invalid
* start - start the proxy manager with auto refresh
* stop  - stop auto refresh

## Usage
```javascript
'use strict';

const ProxyManager = require('./index');

const proxyManager = new ProxyManager({refreshTime : 100000, services: {include: [ProxyManager.SERVICE_NAMES.GIMMI_PROXY]}});
proxyManager.start()
.then(() => {
  setInterval(() => {
    let proxy = proxyManager.get();
    if (proxy){
      proxyManager.blacklist(proxy.ip);
    }
    console.log(proxy);
  }, 1000);
})

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