package ocb

  1. Overview
  2. Docs
SVG badge generator

Install

Dune Dependency

Authors

Maintainers

Sources

0.2.tar.gz
sha256=ec2d476c8b90fe255049140035b249e0f4f34b51e554794950f11be701b28932
sha512=2a7f006d370f39dec76c92534332b846842014c98966b3e75a856ba91ed63a7165d23f3e3b3eb63548356fff35b5ef5b8f066910ab5b2d3f5ecc6afcf6b99e47

Description

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

Published: 07 Jul 2022

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 (2)

  1. owi
  2. toml >= "7.0.0"

Conflicts

None

OCaml

Innovation. Community. Security.