TypeScript library for FlareSolverr
import { runCommand } from "@vwkd/flaresolverr";
const res = await runCommand("http://localhost:8191/v1", {
cmd: "request.get",
url: "http://www.google.com",
maxTimeout: 60000,
});
if (res.status == "error") {
throw new Error(res.message);
}
console.log(res.solution.response);