Gathering detailed insights and metrics for koa-joi-router-to-swagger-json
Gathering detailed insights and metrics for koa-joi-router-to-swagger-json
Gathering detailed insights and metrics for koa-joi-router-to-swagger-json
Gathering detailed insights and metrics for koa-joi-router-to-swagger-json
npm install koa-joi-router-to-swagger-json
Typescript
Module System
Node Version
NPM Version
71.1
Supply Chain
90.8
Quality
74.5
Maintenance
100
Vulnerability
99.6
License
JavaScript (100%)
Total Downloads
2,718
Last Day
1
Last Week
3
Last Month
7
Last Year
81
1 Stars
36 Commits
1 Forks
2 Watching
1 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
0.2.0
Package Id
koa-joi-router-to-swagger-json@0.2.0
Unpacked Size
72.39 kB
Size
22.41 kB
File Count
16
NPM Version
5.6.0
Node Version
8.11.2
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
200%
3
Compared to previous week
Last month
0%
7
Compared to previous month
Last year
-15.6%
81
Compared to previous year
3
5
This project is based on paul42/joi-router-swagger-docs.
A node module for generating Swagger 2.0 JSON definitions from existing koa-joi-router routes.
Aiming to be a replacement for koa-resourcer-docs which can take advantage of various Swagger 2.0 tools for generating client libraries, test suites, AWS Lambda/serverless, etc.
1# use npm 2npm install koa-joi-router-to-swagger-json --save 3# use yarn 4yarn add koa-joi-router-to-swagger-json
Visit example/ folder to see the full example.
Creates a new SwaggerAPI instance.
Add a joi-router instance to the API. The router should already have all its
routes set up before calling this method (which pulls the route definitions
from the router's .routes
property).
Options:
Create a Swagger specification for this API. A base specification should be
provided with an info
object (containing at least the title
and version
strings) and any other global descriptions.
Options:
1{ 2 200: { 3 description: 'Success' 4 } 5}
If you find this project useful, you can buy us a cup of coffee:
We are grateful to the authors of existing related projects for their ideas and collaboration:
chuyik |
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 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
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
branch protection not enabled on development/release branches
Details
Reason
31 existing vulnerabilities detected
Details
Score
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