パッケージの詳細

fastgate

Bes-js4.2kLGPL-3.0-or-later6.1.0

Fastgate provides free, secure, and easy-to-integrate proxy services for developers.

proxy, proxy-agent, http, https

readme


Fastgate provides free, secure, and easy-to-integrate proxy services for developers.

#

Powered By Nyro

#

Discord Buy Me A Coffee

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