Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
swagger-ui-offline-packager
Advanced tools
A tool that generates a single, self-contained HTML file from an OpenAPI definition (YAML or JSON), rendering it in Swagger UI. This allows you to view API documentation offline, without needing an internet connection or a separate web server.
Perfect for sharing API documentation in a simple, portable format! 🚀
You can install Swagger UI Offline Packager globally or locally using npm.
Global Installation
To install the package globally, run:
npm install -g swagger-ui-offline-packager
This allows you to use the swagger-ui-offline-packager
command anywhere in your terminal. You can also use the shorter alias sop
.
Local Installation
To install the package locally in your project, run:
npm install swagger-ui-offline-packager
You can then use it within your project scripts or via npx
:
npx swagger-ui-offline-packager
or with the alias:
npx sop
To generate a standalone Swagger UI HTML file, run the command with the required input file:
sop <swagger-file> [output-html-file]
Parameters:
For more information, use:
sop --help
Generate an HTML file with the default output name (generates api.html in the same directory):
sop api.yaml
Specify a custom output file:
sop api.yaml my-api-docs.html
Using npx (if installed locally):
npx sop api.json docs.html
MIT
FAQs
Swagger UI Offline Packager
The npm package swagger-ui-offline-packager receives a total of 0 weekly downloads. As such, swagger-ui-offline-packager popularity was classified as not popular.
We found that swagger-ui-offline-packager demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.