package tbls
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=27152327074676748020d11ce3cc91cc8c37cd343db64591b1f7af0ff5b62c1d
sha512=f440832e1716c9faf5893f24ce54501fbe373d92889b8612e0661d279c1b92ed2f040ea8f14c031bb00bd7b381950ab23a027cac530eb53834ef3d4c730c6c11
Description
Pure OCaml library for rendering tabular data to plain text, Markdown, or HTML. Accepts typed column descriptors or raw string rows, infers integer and float columns, right-aligns numeric values, and returns a string. No runtime dependencies.
Added to opam-repository:
README
tbls
Pure OCaml library for rendering tabular data to plain text, Markdown, or HTML.
Accepts typed column descriptors or raw string rows, infers integer and float columns, right-aligns numeric values, and returns a string.
No runtime dependencies.
Installation
opam install tblsAdd to your dune file:
(libraries tbls)Quick start
open Tbls
let () =
table_of_rows ~header:["Name"; "Score"]
[[Some "John"; Some "99"]; [Some "Paul"; Some "68"]]
(Text Border.Unicode)
|> Result.get_ok
|> print_endline┌───────┬───────┐
│ Name │ Score │
├───────┼───────┤
│ John │ 99 │
│ Paul │ 68 │
└───────┴───────┘- See EXAMPLES.md for usage examples.
The CLI reads CSV from stdin or files:
printf 'Name,Score\nJohn,99\nPaul,68\n' | tbls --border unicodeSee man tbls for all options and exit codes.
License
ISC. See LICENSE.
Optional Dependencies
None
Used by
None
Conflicts
None
Build status
Results of building tbls with each compiler on check.ci.ocaml.org, run of against opam-repository 78c202b. 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.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 0.4.0 (this version) | n/a | 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