@hpcc-js/wasm-graphviz 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,20 @@
1
+ # @hpcc-js/wasm-graphviz
2
+
3
+ This package provides a WebAssembly wrapper around the [Graphviz](https://www.graphviz.org/) library. This allows for the rendering of DOT language graphs directly within a browser or NodeJS type environment.
4
+
5
+ ## Installation
6
+
7
+ ```sh
8
+ npm install @hpcc-js/wasm-graphviz
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```typescript
14
+ import { Graphviz } from "@hpcc-js/wasm-graphviz";
15
+
16
+ const graphviz = await Graphviz.load();
17
+ const svg = graphviz.dot(`digraph { a -> b; }`);
18
+ document.body.innerHTML = svg;
19
+ ```
20
+