Gathering detailed insights and metrics for @aquilacms/express-jsdoc-swagger
Gathering detailed insights and metrics for @aquilacms/express-jsdoc-swagger
Gathering detailed insights and metrics for @aquilacms/express-jsdoc-swagger
Gathering detailed insights and metrics for @aquilacms/express-jsdoc-swagger
npm install @aquilacms/express-jsdoc-swagger
Typescript
Module System
Min. Node Version
Node Version
NPM Version
71.2
Supply Chain
95.2
Quality
71.5
Maintenance
50
Vulnerability
97.6
License
JavaScript (100%)
Total Downloads
1,384
Last Day
1
Last Week
1
Last Month
13
Last Year
367
MIT License
134 Commits
1 Branches
1 Contributors
Updated on Dec 03, 2020
Minified
Minified + Gzipped
Latest Version
1.0.6
Package Id
@aquilacms/express-jsdoc-swagger@1.0.6
Unpacked Size
212.69 kB
Size
37.79 kB
File Count
107
NPM Version
6.14.8
Node Version
10.23.0
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
0%
1
Compared to previous week
Last Month
8.3%
13
Compared to previous month
Last Year
6.1%
367
Compared to previous year
With this library, you can document your express endpoints using swagger OpenAPI 3 Specification without writing YAML or JSON. You can write jsdoc comments on each endpoint, and the library is going to create the swagger UI.
This library assumes you are using:
npm i express-jsdoc-swagger
1const express = require('express'); 2const expressJSDocSwagger = require('express-jsdoc-swagger'); 3 4const options = { 5 info: { 6 version: '1.0.0', 7 title: 'Albums store', 8 license: { 9 name: 'MIT', 10 }, 11 }, 12 security: { 13 BasicAuth: { 14 type: 'http', 15 scheme: 'basic', 16 }, 17 }, 18 filesPattern: ['./**/*.js'], // Glob pattern to find your jsdoc files 19 swaggerUIPath: '/your-url', // SwaggerUI will be render in this url. Default: '/api-docs' 20 baseDir: __dirname, 21}; 22 23const app = express(); 24const PORT = 3000; 25 26expressJSDocSwagger(app)(options); 27 28/** 29 * GET /api/v1 30 * @summary This is the summary or description of the endpoint 31 * @return {object} 200 - success response 32 */ 33app.get('/api/v1', (req, res) => res.json({ 34 success: true, 35})); 36 37app.listen(PORT, () => console.log(`Example app listening at http://localhost:${PORT}`)); 38
1const options = { 2 info: { 3 version: '1.0.0', 4 title: 'Albums store', 5 license: { 6 name: 'MIT', 7 }, 8 }, 9 security: { 10 BasicAuth: { 11 type: 'http', 12 scheme: 'basic', 13 }, 14 }, 15 filesPattern: ['./**/*.js'], // Glob pattern to find your jsdoc files 16 baseDir: __dirname, 17};
1/** 2 * A song type 3 * @typedef {object} Song 4 * @property {string} title.required - The title 5 * @property {string} artist - The artist 6 * @property {number} year - The year - double 7 */
Songs
model array1/** 2 * GET /api/v1/albums 3 * @summary This is the summary or description of the endpoint 4 * @tags album 5 * @return {array<Song>} 200 - success response - application/json 6 */ 7app.get('/api/v1/albums', (req, res) => ( 8 res.json([{ 9 title: 'abum 1', 10 }]) 11));
1/** 2 * GET /api/v1/album 3 * @summary This is the summary or description of the endpoint 4 * @security BasicAuth 5 * @tags album 6 * @param {string} name.query.required - name param description 7 * @return {object} 200 - success response - application/json 8 * @return {object} 400 - Bad request response 9 */ 10app.get('/api/v1/album', (req, res) => ( 11 res.json({ 12 title: 'abum 1', 13 }) 14));
You can find more examples here, or visit our documentation.
Briam Martinez Escobar 💻 | Kevin Julián Martínez Escobar 💻 | Heung-yeon Oh 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 4
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
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
no SAST tool detected
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
44 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
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