
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
jsdoc-mermaid
Advanced tools
A plugin that parses your JSDocs for Mermaid syntax and renders the diagrams and flowcharts described.
Add jsdoc-mermaid to your jsdoc configuration file. That's it!
{
"plugins": ["jsdoc-mermaid"]
}
Document a method with an @mermaid
tag using JSDoc Syntax, like so:
/**
* Represents a book.
* @constructor
* @param {string} title - The title of the book.
* @param {string} author - The author of the book.
*
* @mermaid
* graph TD;
* A-->B;
* A-->C;
* B-->D;
* C-->D;
*/
function Book(title, author) {
/* ... */
}
Generate your JSDocs using the configuration you've specified - for instance:
jsdoc book.js -c conf.json
When you open that page in JSDoc, you should have a shiny new graph!
We use SemVer for versioning.
FAQs
A tool to automagically create flowcharts and diagrams in your jsdocs.
The npm package jsdoc-mermaid receives a total of 5,151 weekly downloads. As such, jsdoc-mermaid popularity was classified as popular.
We found that jsdoc-mermaid 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.