0.2.0 • Published 8 years ago

graphviz2svg v0.2.0

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

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