
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.
@confused-techie/quick-webserver-docs
Advanced tools
After searching high and low for a simplistic, fast, reliable way to create JSDoc Style Markdown documentation I was disappointed by the myriad of solutions I found.
While there is absolutely no shortage of solutions, and granted many of them are bound to be fantastic, extensible, pluggable, and flexible. This wasn't what I needed. Sometimes all thats needed is a quick and dirty way to write down documentation for your JavaScript API endpoints. Without YAML in JSDoc Comments, or installing Java on your machine.
For this now there is Quick-WebServer-Docs.
Exactly how it sounds, it has some simple syntax that lives in JSDoc Style Comments in your JavaScript code, with a single CLI app to extract, parse, and create a Markdown file where you see fit.
If at any point some more complex declarations are giving you issues you can refer to the Regex statements explained to give insight into what exactly is expected.
npm install @confused-techie/quick-webserver-docs
To add this as an NPM script for your project:
npm install @confused-techie/quick-webserver-docs --save-dev
Then add the following into your package.json file.
"scripts": {
"doc": "quick-webserver-docs -i ./input/file.js -o ./output/file.md"
}
And to create your new Documentation file:
npm run doc
The syntax has recently been rewritten with many breaking changes.
/**
* @web
* @desc Hello world
* @path /api/packages
* @method GET
* @auth true
* @param
* @location query
* @Ptype application/json
* @name page
* @valid 1,2,3,4
* @required true
* @Pdesc Hello world from a query parameter.
* @response
* @status 418
* @Rtype application/json
* @Rdesc Hello world response
* @Rexample {[ "name": "hello-world"]}
*/
Creates:
Hello world
true
Parameters:[application/json] | Valid: [1,2,3,4]
HTTP Status Code: 418 I'm a teapot
Type: [application/json]
Hello world response
{[ "name": "hello-world" ]}
FAQs
Quickly make JS API Docs in Markdown
We found that @confused-techie/quick-webserver-docs 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.