ocb

SVG badge generator
README

ocb (OCaml Badgen) is an OCaml library for SVG badge generation. There's also a command-line tool provided.

Quick start

Using the command-line tool

ocb --label Hello --color green --style flat --labelcolor white --status Goodbye > out.svg && xdg-open out.svg

Gives the following result: .

Using the library

let () =
  let open Ocb in
  Gen.mk Format.std_formatter ~label:"Hello" ~color:Color.Blue ~style:Style.Flat ~label_color:Color.White ~status:"Goodbye" ()

Credits

This project is inspired by badgen.

Install
Sources
0.1.tar.gz
sha256=aa27684fbda1b8036ae7e3c87de33a98a9cd2662bcc91c8447e00e41476b6a46
sha512=1260344f184dd8c8074b0439dbcc8a5d59550a654c249cd61913d4c150c664f37b76195ddca38f7f6646d08bddb320ceb8d420508450b4f09a233cd5c22e6b9b
Dependencies
odoc
with-doc
dune
>= "2.0"
ocaml
>= "4.05"
Reverse Dependencies
toml
>= "7.0.0"