
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@collinsadi/swagger
Advanced tools
An Express.js middleware for auto-generating Swagger documentation from your routes, with support for route descriptions based on function names. Open-source and easy-to-use for documenting your Express applications.
🚀 @collinsadi/swagger is an npm package that automates the generation of Swagger documentation for Express.js applications. Document your routes with ease and share them with your team!
You can install this package via npm:
npm install @collinsadi/swagger
const generateSwaggerDocumentation = require("@collinsadi/swagger");
// Create an Express app
const express = require("express");
const app = express();
// Generate Swagger documentation for your Express app
generateSwaggerDocumentation(app, port, live);
app: Your Express application.port: The port on which your server is running.live: Optional. The deployment server URL.👉 Note: @collinsadi/swagger takes the name of the function assigned to the routes as a description for the route. Currently, it supports routes declared in the app.js. Stay tuned for future updates to expand support to routes imported from other files.
After generating the Swagger documentation, you can view it using Swagger UI by navigating to:
http://your-server/docs
// Create an Express app
const express = require("express");
const generateSwaggerDocumentation = require("@collinsadi/swagger");
const app = express();
app.listen(2000, () => {
console.log("Server Started")
})
const createUser = (req, res)=>{
res.send("User Created")
}
app.get("/users/create", createUser)
// Generate Swagger documentation for your Express app
generateSwaggerDocumentation(app, 2000, "https://collinsadi.vercel.app");

🌟 We welcome contributions! This project is open source and open for collaboration. Feel free to contribute, report issues, and help improve this package.
We have exciting plans for the future of @collinsadi/swagger, including:
Stay tuned for these upcoming features and be part of our open-source journey!
This project is licensed under the MIT License. See the LICENSE file for details.
🌍 Connect with us on GitHub and let's make Swagger documentation a breeze!
FAQs
An Express.js middleware for auto-generating Swagger documentation from your routes, with support for route descriptions based on function names. Open-source and easy-to-use for documenting your Express applications.
We found that @collinsadi/swagger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.