Skip to content

Zemnmez/mermaid-render

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

node package for rendering mermaid diagrams

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published