svgbobex v0.0.2 SvgBobEx

Provides a straightforward interface to the svgbob tool.

graph = """
+-----+    +-----+
| one +--->| two |
+-----+    +-----+
"""
SvgBobEx.to_svg!(graph)

Link to this section Summary

Functions

Takes the string containing the ASCII graph and converts it into SVG data. Returns { :ok, String.t } on success, or { :error, reason } on failure

Takes the string containing the ASCII graph and converts it into SVG data. Returns the SVG data, or raises SvgBobEx.Error on failure

Link to this section Functions

Link to this function to_svg(source)
to_svg(String.t()) :: {:ok | :error, String.t()}

Takes the string containing the ASCII graph and converts it into SVG data. Returns { :ok, String.t } on success, or { :error, reason } on failure.

Link to this function to_svg!(source)
to_svg!(String.t()) :: String.t() | no_return()

Takes the string containing the ASCII graph and converts it into SVG data. Returns the SVG data, or raises SvgBobEx.Error on failure.