@hpcc-js/wasm-graphviz
v1.17.0
Published
hpcc-js - WASM Graphviz
Maintainers
Readme
@hpcc-js/wasm-graphviz
This package provides a WebAssembly wrapper around the Graphviz library. This allows for the rendering of DOT language graphs directly within a browser or NodeJS type environment.
Installation
npm install @hpcc-js/wasm-graphvizQuick Start
import { Graphviz } from "@hpcc-js/wasm-graphviz";
const graphviz = await Graphviz.load();
const svg = graphviz.dot(`digraph { a -> b; }`);
document.body.innerHTML = svg;