Installations
npm install swaggerui2koa
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
10.6.0
NPM Version
6.3.0
Score
74.6
Supply Chain
78.3
Quality
72
Maintenance
100
Vulnerability
99.6
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (95.93%)
CSS (3.84%)
HTML (0.24%)
Developer
aerchen
Download Statistics
Total Downloads
753
Last Day
1
Last Week
9
Last Month
19
Last Year
71
GitHub Statistics
1 Stars
4 Commits
2 Watching
1 Branches
1 Contributors
Bundle Size
94.45 kB
Minified
32.50 kB
Minified + Gzipped
Package Meta Information
Latest Version
1.0.0
Package Id
swaggerui2koa@1.0.0
Unpacked Size
3.30 MB
Size
870.21 kB
File Count
49
NPM Version
6.3.0
Node Version
10.6.0
Total Downloads
Cumulative downloads
Total Downloads
753
Last day
0%
1
Compared to previous day
Last week
200%
9
Compared to previous week
Last month
375%
19
Compared to previous month
Last year
-10.1%
71
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
4
swaggerui2koa
swagger ui middleware for koa2
install
npm install swaggerui2koa
example
const app = new koa();
// load swagger schema
const spec = fs.readFileSync(path.join(__dirname,'swagger.yaml'), 'utf8');
const swaggerDoc = jsyaml.safeLoad(spec);
const options = {
swaggerUi: 'swagger' // config swagger ui path
};
// Serve the Swagger documents and Swagger UI
app.use(require('../index')(swaggerDoc, options));
// vist swagger ui view on http://localhost:8080/swagger/
app.listen(8080);
![Empty State](/_next/static/media/empty.e5fae2e5.png)
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
7 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-2pr6-76vf-7546
- Warn: Project is vulnerable to: GHSA-8j8c-7jfh-h6hx
- Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695
- Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw
- Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9
- Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm
- Warn: Project is vulnerable to: GHSA-29xr-v42j-r956
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/4 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
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
license file not detected
Details
- Warn: project does not have a license file
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Score
1.7
/10
Last Scanned on 2025-02-03
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