
Security News
OpenClaw Skill Marketplace Emerges as Active Malware Vector
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.
Extracts `/** code comments */` from code files and turns them into markdown docs. Supports JavaScript-style comments (other languages to come).
Extracts /** code comments */ from code files and turns them into markdown
docs. Supports JavaScript-style comments (other languages to come).
$ npm install -g mdextract
$ mdextract --help
Use it to extract comments into a doc:
$ mdextract file.js > docs.md
Or update a doc:
$ cat README.md
add `include` comments to your markdown file
<!-- include: file.js -->
<!-- /include: file.js -->
$ mdextract --update README.md
...the --update mode is great for making Readme-based documentation in small
projects. It is idempotent.
Sections: mark them with comments beginning with two stars.
/**
* Sections:
* Start your sections with two stars.
*
* If your first line of text ends in a colon (:), it will be turned into an
* `<h3>` heading.
*/
Main sections: three stars.
/***
* Main sections:
* If you start sections with three stars, the headings will be turned into
* `<h2>` headings.
*/
Code blocks: They will be converted into syntax-highlighted code fences.
/**
* An example:
*
* function () {
* return true;
* }
*/
Definition lists: Use ~ as a bullet. Great for parameter lists.
/**
* ~ name: description
* ~ id: the identifier
* ~ callback (Function): the callback to run afterwards
*/
Sample usage: Use name : usage as your first line to specify a sample
usage.
/**
* push : push(name, fn)
* Adds an item to the stack.
*/
Single-line mode: for short documentations.
/** id: the identifier. */
this.id = null;
/** name: the name. */
this.name = "Hello";
mdextract © 2014+, Rico Sta. Cruz. Released under the MIT License.
Authored and maintained by Rico Sta. Cruz with help from contributors.
ricostacruz.com · GitHub @rstacruz · Twitter @rstacruz
FAQs
Extracts `/** code comments */` from code files and turns them into markdown docs. Supports JavaScript-style comments (other languages to come).
The npm package mdextract receives a total of 1,018 weekly downloads. As such, mdextract popularity was classified as popular.
We found that mdextract 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
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.

Security News
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.