Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/michaelhatherly/nomnomljs.jl

Julia wrapper for nomnoml, a UML diagram library for JavaScript.
https://github.com/michaelhatherly/nomnomljs.jl

diagrams julia nomnoml uml

Last synced: 3 months ago
JSON representation

Julia wrapper for nomnoml, a UML diagram library for JavaScript.

Awesome Lists containing this project

README

        

# NomnomlJS

![CI](https://github.com/MichaelHatherly/NomnomlJS.jl/workflows/CI/badge.svg)

A Julia wrapper for the [`nomnoml`](https://github.com/skanaar/nomnoml)
JavaScript library for text-based UML diagrams exportable to `svg`, `png`,
`pdf`, and `eps`. Please refer to the upstream documentation for the supported
diagram syntax.

This package is tested against Julia `1.3+` on Linux, MacOS, and Windows.

## Usage

```julia-repl
julia> ]add NomnomlJS

julia> using NomnomlJS

julia> d = Diagram("[A] is -> [B]");

julia> write("diagram.svg", d);

julia> write("diagram.png", d);

julia> d = read("diagram.noml", Diagram);

julia> write("diagram.pdf", d);

julia> write("diagram.eps", d);

```

![diagram](test/data/reference.svg)