package ocb

  1. Overview
  2. Docs
SVG badge generator

Install

Dune Dependency

Authors

Maintainers

Sources

0.1.tar.gz
sha256=aa27684fbda1b8036ae7e3c87de33a98a9cd2662bcc91c8447e00e41476b6a46
sha512=1260344f184dd8c8074b0439dbcc8a5d59550a654c249cd61913d4c150c664f37b76195ddca38f7f6646d08bddb320ceb8d420508450b4f09a233cd5c22e6b9b

Description

An OCaml library for SVG badge generation. There's also a command-line tool provided.

Published: 07 Jan 2021

README

ocb

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.

Dependencies (2)

  1. dune >= "2.0"
  2. ocaml >= "4.05"

Dev Dependencies (1)

  1. odoc with-doc

Used by (3)

  1. osh
  2. owi
  3. toml >= "7.0.0"

Conflicts

None