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
Published
07 Jul 2022
Sources
0.2.tar.gz
sha256=ec2d476c8b90fe255049140035b249e0f4f34b51e554794950f11be701b28932
sha512=2a7f006d370f39dec76c92534332b846842014c98966b3e75a856ba91ed63a7165d23f3e3b3eb63548356fff35b5ef5b8f066910ab5b2d3f5ecc6afcf6b99e47
Dependencies
odoc
with-doc
dune
>= "2.0"
ocaml
>= "4.05"
Reverse Dependencies
toml
>= "7.0.0"