Installations
npm install koa-proxies-filter
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
10.8.0
NPM Version
6.2.0
Score
50
Supply Chain
78.2
Quality
72.1
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
Download Statistics
Total Downloads
687
Last Day
2
Last Week
4
Last Month
9
Last Year
100
GitHub Statistics
1 Stars
59 Commits
2 Watching
19 Branches
1 Contributors
Package Meta Information
Latest Version
1.0.1
Package Id
koa-proxies-filter@1.0.1
Unpacked Size
9.58 kB
Size
4.19 kB
File Count
11
NPM Version
6.2.0
Node Version
10.8.0
Total Downloads
Cumulative downloads
Total Downloads
687
Last day
100%
2
Compared to previous day
Last week
100%
4
Compared to previous week
Last month
200%
9
Compared to previous month
Last year
35.1%
100
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
2
Peer Dependencies
1
Koa Proxies
Koa@2.x/next middlware for http proxy
Powered by http-proxy
.
Installation
1$ npm install koa-proxies-filter --save
Options
http-proxy events
1options.events = { 2 error (err, req, res) { }, 3 proxyReq (proxyReq, req, res) { }, 4 proxyRes (proxyRes, req, res) { } 5}
Usage
1// dependencies 2const Koa = require('koa') 3const proxy = require('koa-proxies') 4const httpsProxyAgent = require('https-proxy-agent') 5 6const app = new Koa() 7 8// middleware 9app.use(proxy('/octocat', { 10 target: 'https://api.github.com/users', 11 changeOrigin: true, 12 agent: new httpsProxyAgent('http://1.2.3.4:88'), // if you need or just delete this line 13 rewrite: path => path.replace(/^\/octocat(\/|\/\w+)?$/, '/vagusx'), 14 filter:ctx=> ctx.request.method==='POST' 15 logs: true 16}))
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
3
/10
Last Scanned on 2024-12-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