merman-cli-0.6.2 is not a library.
merman-cli
merman-cli is the command-line interface for merman. It can detect, parse, layout, and render Mermaid diagrams without a browser.
Install
From a local checkout:
Commands
If no input path is provided, or the input path is -, merman-cli reads Mermaid source from stdin.
|
Rendering Options
render writes SVG to stdout by default. Use --out for files and --format png|jpg|pdf for raster or PDF export.
Useful flags:
--text-measurer deterministic|vendoredcontrols text measurement.vendoredis better for visual output;deterministicis useful for stable fixture-style output.--id <diagram-id>sets the root SVG id and internal marker id prefix.--scale <n>controls PNG/JPG raster scale.--background <css-color>sets raster background.--hand-drawn-seed <n>stabilizes rough/hand-drawn rendering where supported.--viewport-width <w>and--viewport-height <h>configure viewport-sensitive layouts.--suppress-errorsemits an error diagram instead of failing on parse errors.
SVG Input Rasterization
merman-cli render --format png|jpg|pdf can also rasterize existing SVG input when the input starts with <svg.
The raster path applies merman's resvg-safe SVG cleanup before conversion.