fastgate
v6.1.0
Published
Fastgate provides free, secure, and easy-to-integrate proxy services for developers.
Downloads
2,757
Maintainers
Readme
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.