
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
proxychooser
Advanced tools
A simple proxy chooser to choose proxies from a list or test proxies, only supports http/https proxies.
A simple proxy chooser to choose proxies from a list or test proxies, only supports http/https proxies.
GitHub: https://github.com/DemonMartin/proxychooser/
npm install proxychooser
const ProxyChooser = require("proxychooser");
const proxyList = [
"proxy1:port1",
"name:pw@proxy:port"
];
const proxyChooser = new ProxyChooser(proxyList, {
verbose: true,
maxTimeout: 1000,
forceRetry: false
});
proxyChooser.getProxy().then(proxy => {
console.log(proxy);
});
const singleProxy = new ProxyChooser([], {
verbose: true,
maxTimeout: 1000
});
singleProxy.testProxy(proxyList[0]).then(proxy => {
console.log(proxy);
});
proxyList
(Array): List of proxies to use.options
(Object): Options to use.
verbose
(boolean, optional): If true, will log to console. Default: false.verboseIdentifier
(string, optional): Identifier for verbose. Default: "[proxyChooser]".maxTimeout
(number, optional): Max timeout for a request. Default: 1000.pingUrl
(string, optional): URL to use to check proxy. Default: "http://myexternalip.com/raw".forceRetry
(boolean, optional): Whether function getProxy
should continue searching even on error. Default: false.Resets the proxy list.
Adds proxies to the proxy list.
proxies
(Array): List of proxies to add.Gets the ping between the client and the pingUrl
.
Tests the given proxy for connectivity.
proxy
(string): Proxy to test.Resets the cache of tested proxies.
Gets the next working proxy from the proxy list.
MIT License
Demon Martin
FAQs
A simple proxy chooser to choose proxies from a list or test proxies, only supports http/https proxies.
The npm package proxychooser receives a total of 0 weekly downloads. As such, proxychooser popularity was classified as not popular.
We found that proxychooser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.