Using npm:
$ npm install fastgate
Other Installations:
$ yarn add fastgate
$ pnpm add fastgate
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);
});
fastgate is licensed under the GPL-3.0 License. See the LICENSE file for details.