bromaid
v0.1.1
Published
Batteries-included bromaid umbrella package: parse → layout → renderSVG (SVG string).
Readme
bromaid
Batteries-included umbrella package for the bromaid pipeline:
parse → layout → renderSVG (pure SVG string output).
Install
npm i bromaidUsage
import { renderFromSource } from 'bromaid';
const svg = await renderFromSource('actor user \"User\"', { mode: 'dark' });You can also import the individual building blocks:
import { parse, layout, renderSVG, defaultTheme } from 'bromaid';
const svg = renderSVG(await layout(parse(source)), { theme: defaultTheme });Docs
- Root docs and examples: https://github.com/vaarvik/bromaid
