Code Monkey home page Code Monkey logo

ps-hidemyass's Introduction

ps-hidemyass

Source of proxies for proxy-supervisor

Installation

$ npm install ps-hidemyass

Usage

Module exports default singleton

const hidemyass = require('ps-hidemyass');
const source = hidemyass() // singleton

Alternatively

const Hidemyass = require('ps-hidemyass').Source;
const source = new Hidemyass();

For complete guide please visit proxy-supervisor.

Design

This source is responsible for collecting new proxies from hidemyass.com and adding them to listeners.

new Source([options])

  • options <Object> Set of configurable options to set on the monitor. Can have the following fields:
    • interval <Integer> Specifies how much time should pass after last check is completed. Defaults to 5 minutes.

Source is started automatically on creation, and will trigger for the first time after specified interval is passed.

source.start()

Starts source. Use only in case you have stopped source manually. Source is started automatically on creation and can work with empty list of listeners.

source.stop()

Stops source. It will clear current timer, but already running load will be not affected.

source.load()

  • Returns: <Promise> A promise, which resolves into an array of received proxies. Those proxies are already added to listeners.

Loads new proxies. This method will request html page with proxies, retrieve addresses and add then to listeners.

Tests

To run the test suite, first install the dependencies, then run npm test:

$ npm install
$ npm test

License

MIT

ps-hidemyass's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.