Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
httpx-proxy-agent-config
Advanced tools
A Node proxy definition for http/https with proxy and blacklist/whitelist configuration.
A Node proxy definition for http/https with proxy and blacklist/whitelist configuration
$ npm install bloublou2014/httpx-proxy-agent-config
var proxy = require('httpx-proxy-agent-config');
proxy.install({
http_proxy: 'http://yourProxy:3128',
https_proxy: 'http://yourHttpsProxy:3218',
// example for passportjs Google OAuth2 + Google+
whitelist: ['www.google.com','accounts.google.com', '173.194.66.95', '74.125.192.95', '209.85.201.95', 'www.googleapis.com']
});
// try to access a page via http request :
var http = require('http');
http.get("http://www.google.com", function (response) {
var body = '';
response.on('data', function (d) {
body += d;
});
response.on('end', function () {
console.log("Body=", body);
});
});
// try to access a page via https request
var https = require('https');
https.get("https://www.google.com", function (response) {
var body = '';
response.on('data', function (d) {
body += d;
});
response.on('end', function () {
console.log("Body=", body);
});
});
.install(Object configuration)
Install proxy on http and https if configuration available.
Configuration options :
Note : whitelist and blacklist can't be used at the same time. Only set one list.
Currently white/blacklist only support string (no regex).
.uninstall()
Restore previous agent and http(s).request functions
.config()
Returns current configuration
FAQs
A Node proxy definition for http/https with proxy and blacklist/whitelist configuration.
The npm package httpx-proxy-agent-config receives a total of 20 weekly downloads. As such, httpx-proxy-agent-config popularity was classified as not popular.
We found that httpx-proxy-agent-config 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
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.