Gathering detailed insights and metrics for pac-proxy-agent-stzhang
Gathering detailed insights and metrics for pac-proxy-agent-stzhang
Gathering detailed insights and metrics for pac-proxy-agent-stzhang
Gathering detailed insights and metrics for pac-proxy-agent-stzhang
A PAC file proxy `http.Agent` implementation for HTTP and HTTPS
npm install pac-proxy-agent-stzhang
Typescript
Module System
Node Version
NPM Version
61.8
Supply Chain
88.6
Quality
71.8
Maintenance
25
Vulnerability
100
License
JavaScript (100%)
Total Downloads
548
Last Day
2
Last Week
2
Last Month
14
Last Year
91
102 Commits
1 Branches
1 Contributors
Updated on Feb 03, 2020
Minified
Minified + Gzipped
Latest Version
1.0.1
Package Id
pac-proxy-agent-stzhang@1.0.1
Unpacked Size
25.90 kB
Size
8.21 kB
File Count
8
NPM Version
6.11.3
Node Version
10.17.0
Cumulative downloads
Total Downloads
Last Day
100%
2
Compared to previous day
Last Week
-66.7%
2
Compared to previous week
Last Month
-6.7%
14
Compared to previous month
Last Year
16.7%
91
Compared to previous year
8
http.Agent
implementation for HTTP and HTTPSThis module provides an http.Agent
implementation that retreives the specified
PAC proxy file and uses it to resolve which HTTP, HTTPS, or
SOCKS proxy, or if a direct connection should be used to connect to the
HTTP endpoint.
It is designed to be be used with the built-in http
and https
modules.
Install with npm
:
1$ npm install pac-proxy-agent-stzhang
1var url = require('url'); 2var http = require('http'); 3var PacProxyAgent = require('pac-proxy-agent-stzhang'); 4 5// URI to a PAC proxy file to use (the "pac+" prefix is stripped) 6var proxy = 'pac+https://cloudup.com/ceGH2yZ0Bjp+'; 7console.log('using PAC proxy proxy file at %j', proxy); 8 9// HTTP endpoint for the proxy to connect to 10var endpoint = 'http://nodejs.org/api/'; 11console.log('attempting to GET %j', endpoint); 12var opts = url.parse(endpoint); 13 14// create an instance of the `PacProxyAgent` class with the PAC file location 15var agent = new PacProxyAgent(proxy); 16opts.agent = agent; 17 18http.get(opts, function (res) { 19 console.log('"response" event!', res.headers); 20 res.pipe(process.stdout); 21});
(The MIT License)
Copyright (c) 2014 Nathan Rajlich <nathan@stuartZhang.net>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-06-23
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More