Automatically cycle proxy servers. Built with request in mind, but usable in any context.
Usage:
const{proxify}=require("@sesamestrong/proxy-user");constrequest=require("request-promise");constproxyRotate=proxify(10);// 10 requests per proxyconstoptions={method:"GET",headers:{"Referer":"https://bing.com"}};(async()=>{for(leti=0;i<50;i++){// 50 requests in totalawaitrequest("https://www.google.com",awaitproxyRotate(options));}// 5 proxies are used, with 10 requests per proxy})();``