Gathering detailed insights and metrics for swagger-markdown
Gathering detailed insights and metrics for swagger-markdown
Gathering detailed insights and metrics for swagger-markdown
Gathering detailed insights and metrics for swagger-markdown
npm install swagger-markdown
Typescript
Module System
Node Version
NPM Version
77
Supply Chain
92.3
Quality
77
Maintenance
100
Vulnerability
99.6
License
TypeScript (96.4%)
JavaScript (3.41%)
Shell (0.19%)
Total Downloads
791,240
Last Day
346
Last Week
2,127
Last Month
9,617
Last Year
125,884
MIT License
247 Stars
510 Commits
87 Forks
5 Watchers
3 Branches
13 Contributors
Updated on Apr 23, 2025
Minified
Minified + Gzipped
Latest Version
2.3.2
Package Id
swagger-markdown@2.3.2
Unpacked Size
84.91 kB
Size
21.52 kB
File Count
65
NPM Version
10.8.0
Node Version
18.17.1
Published on
May 26, 2024
Cumulative downloads
Total Downloads
Last Day
29.6%
346
Compared to previous day
Last Week
-7.2%
2,127
Compared to previous week
Last Month
-15.4%
9,617
Compared to previous month
Last Year
-11.8%
125,884
Compared to previous year
29
CLI script to turn swagger yaml into markdown files. Supports swagger 2.0 format only
The version 2.0 is a breaking change. The project was rewritten in typescript.
Along with addressing multiple issues, it is more strict now with the openapi version.
In case if version 3 is provided, the application will throw an error.
The support of v3 is at the roadmap, although it is possible to overcome this restriction by using --force-version flag: --force-version 2
. It will process v3 documents as it is v2, although it may fail and it may generate the markdown with errors.
As soon as v3 support will be added, the flag will be removed.
see examples folder
1npm install -g swagger-markdown
swagger-markdown [-h] [-v] -i [-o] [--skip-info]
Options:
-h, --help Show this help message and exit.
-v, --version Show program's version number and exit.
-i , --input Path to the swagger yaml file
-o , --output Path to the resulting md file
--skip-info Skip the title, description, version etc, whatever is in the info block.
--force-version Set the document version, ignore version provided in the yaml file
1npx swagger-markdown -i ./basic-auth.yaml
1swagger-markdown -i path/to/swagger/file.yaml
By default it will create the new file within the same directory with the same name as swagger file but with .md extension.
So, if swagger file is placed in project/api-doc/swagger.yaml
the new file will be created as project/api-doc/swagger.md
You can also use it as a npm script in your package.json:
1npm i --save-dev swagger-markdown
1{ 2 "scripts": { 3 "md-docs": "swagger-markdown -i path/to/swagger.yaml", 4 //... 5 } 6}
1npm run md-docs
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 4
Details
Reason
7 existing vulnerabilities detected
Details
Reason
Found 0/8 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 effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-04-28
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