6.1.0 • Published 8 months ago

fastgate v6.1.0

Weekly downloads
-
License
LGPL-3.0-or-later
Repository
github
Last release
8 months ago

Installation

Using npm:

$ npm install fastgate

Other Installations:

$ yarn add fastgate
$ pnpm add fastgate

Usage

import fastgate from 'fastgate';
    
/* Promise<ProxyAPIResponse> */
fastgate.getProxyList({
        country: ['tr'],
        protocol: ['http'],
        anonymity: ['Elite'],
        timeout: 5555
 }).then((response) => {
      console.log(response);
    });

/* Promise<ProxyObject | undefined> */
fastgate.getProxy({
   force: false,
   proxyOptions: {
     alive: true,
     timeout: (timeout) => {
      return timeout < 5000;
    },
     ip: (ip) => {
        return ip.startsWith('190');
    }
 }).then((response) => {
      console.log(response);
    });

License

fastgate is licensed under the GPL-3.0 License. See the LICENSE file for details.

Support

Discord Banner