mermaid-render
v1.0.9
Published
render mermaid diagrams outside of the browser using puppeteer
Downloads
12
Readme
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);