New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

punch-proxy-manager

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

punch-proxy-manager

Module for get proxies.

latest
npmnpm
Version
0.0.13
Version published
Maintainers
1
Created
Source

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

'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);
})

FAQs

Package last updated on 28 Oct 2016

Related posts