ASCIIToSVG
ASCIIToSVG is a pretty simple Go library (with an accompanying CLI tool) that parses ASCII art diagrams, attempting to convert them to an aesthetically pleasing SVG output.
Example
[a2s, format="svg"] .... .-------------------------. | | | .---.-. .-----. .-----. | | | .-. | +--> | | <--| | | | '-' | | <--| +--> | | | '---'-' '-----' '-----' | | ascii 2 svg | | | '-------------------------' ....
Installation
-
Install the Go runtime
-
Run
go install github.com/asciitosvg/asciitosvg@latest
Attributes
Name | Default value | Description |
---|---|---|
svg-type |
unspecified |
One of |
server-url |
unspecified |
External service to render diagram. Usage removes the need to depend on external tools to be installed locally. |
server-type |
unspecified |
One of |
max-get-size |
1024 |
The maximum size of the URI path for HTTP GET requests. If the maximum size is exceeded, POST requests are used instead |