graphviz2svg

0.2.0 • Public • Published

graphviz2svg

Provide a library rendering graph and digraph content into svg.

[x] provide a library function doing this [x] provide a commandline tool doing this [ ] provide a function, which can be added to expect server, rendering the file on server and return the svg [ ] provide a server-side script to render graphs

Default font is sans.

API

  graphviz2svg = require('graphviz2svg');
  graphviz2svg.graph2svg('A -- B ; B -- C ; C -- A'); // --> returns svg
  graphviz2svg.digraph2svg('A -> B ; B -> C ; C -> A'); // --> returns svg
 
  graphviz2svg.digraph2svg('A -> B ; B -> C ; C -> A', {digraph_font: 'serif'}); // --> returns svg

Package Sidebar

Install

npm i graphviz2svg

Weekly Downloads

1

Version

0.2.0

License

ISC

Last publish

Collaborators

  • klorenz