package ocb

  1. Overview
  2. Docs
SVG badge generator

Install

dune-project
 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.

Added to opam-repository:

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: cli example.

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

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

Conflicts

None

Build status

Results of building ocb with each compiler on check.ci.ocaml.org, run of against opam-repository 7cdc698. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

This version is not in the latest run; the versions below are.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
0.2 good good good good good
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure