mermaid-render
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

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);

Readme

Keywords

none

Package Sidebar

Install

npm i mermaid-render

Weekly Downloads

0

Version

1.0.9

License

MIT

Unpacked Size

42.3 kB

Total Files

36

Last publish

Collaborators

  • zemnmez