Socket
Socket
Sign inDemoInstall

mermaid-render

Package Overview
Dependencies
99
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mermaid-render

render mermaid diagrams outside of the browser using puppeteer


Version published
0
Maintainers
1
Created
Weekly downloads
 

Readme

Source

mermaid-render

This package renders mermaid diagrams outside of the browser using puppeteer. It's a stripped out and improved version of mermaid-cli. The typescript types are the best documentation of the API.

import { renderMermaid } from 'mermaid-render';
const svg = await renderMermaid(
`pie title NETFLIX
        "Time spent looking for movie" : 90
        "Time spent watching it" : 10` 
);
console.log(svg);

FAQs

Last updated on 20 Oct 2020

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc