@hpcc-js/wasm-graphviz
TypeScript icon, indicating that this package has built-in type declarations

1.5.0 • Public • Published

@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-graphviz

Quick Start

import { Graphviz } from "@hpcc-js/wasm-graphviz";

const graphviz = await Graphviz.load();
const svg = graphviz.dot(`digraph { a -> b; }`);
document.body.innerHTML = svg;

Reference

Package Sidebar

Install

npm i @hpcc-js/wasm-graphviz

Weekly Downloads

2,566

Version

1.5.0

License

Apache-2.0

Unpacked Size

782 kB

Total Files

8

Last publish

Collaborators

  • hpcc-js