{"id":41859681,"url":"https://github.com/mbarbin/print-table","last_synced_at":"2026-01-25T11:13:39.369Z","repository":{"id":305845864,"uuid":"1024092870","full_name":"mbarbin/print-table","owner":"mbarbin","description":"Simple Unicode/ANSI and Markdown text table rendering for OCaml","archived":false,"fork":false,"pushed_at":"2026-01-10T14:08:20.000Z","size":87,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-11T04:20:46.466Z","etag":null,"topics":["markdown","table"],"latest_commit_sha":null,"homepage":"https://mbarbin.github.io/print-table/","language":"OCaml","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mbarbin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"COPYING.HEADER","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-22T07:12:03.000Z","updated_at":"2026-01-10T14:07:52.000Z","dependencies_parsed_at":"2025-07-22T10:28:43.174Z","dependency_job_id":"0b4bd5ee-46b9-43a2-a5ed-70b1d0720b64","html_url":"https://github.com/mbarbin/print-table","commit_stats":null,"previous_names":["mbarbin/print-table"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/mbarbin/print-table","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbarbin%2Fprint-table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbarbin%2Fprint-table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbarbin%2Fprint-table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbarbin%2Fprint-table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mbarbin","download_url":"https://codeload.github.com/mbarbin/print-table/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbarbin%2Fprint-table/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28752666,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T10:25:12.305Z","status":"ssl_error","status_checked_at":"2026-01-25T10:25:11.933Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["markdown","table"],"created_at":"2026-01-25T11:13:39.310Z","updated_at":"2026-01-25T11:13:39.365Z","avatar_url":"https://github.com/mbarbin.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# print-table\n\n[![CI Status](https://github.com/mbarbin/print-table/workflows/ci/badge.svg)](https://github.com/mbarbin/print-table/actions/workflows/ci.yml)\n[![Coverage Status](https://coveralls.io/repos/github/mbarbin/print-table/badge.svg?branch=main)](https://coveralls.io/github/mbarbin/print-table?branch=main)\n[![OCaml-CI Build Status](https://img.shields.io/endpoint?url=https://ocaml.ci.dev/badge/mbarbin/print-table/main\u0026logo=ocaml)](https://ocaml.ci.dev/github/mbarbin/print-table)\n\nPrint_table provides a minimal library for rendering text tables with Unicode box-drawing characters and optional ANSI colors:\n\n```ocaml\n# let columns =\n  Print_table.O.\n    [ Column.make ~header:\"Name\" (fun (name, _) -\u003e Cell.text name)\n    ; Column.make ~header:\"Score\" ~align:Right (fun (_, score) -\u003e\n        Cell.text (Int.to_string score))\n    ]\nval columns : (string * int) Print_table.Column.t list = [\u003cabstr\u003e; \u003cabstr\u003e]\n\n# let rows = [ \"Alice\", 10; \"Bob\", 3 ] ;;\nval rows : (string * int) list = [(\"Alice\", 10); (\"Bob\", 3)]\n\n# print_endline (Print_table.to_string_text (Print_table.make ~columns ~rows))\n┌───────┬───────┐\n│ Name  │ Score │\n├───────┼───────┤\n│ Alice │    10 │\n│ Bob   │     3 │\n└───────┴───────┘\n\n- : unit = ()\n```\n\nOr as GitHub-flavored Markdown:\n\n```ocaml\n# print_endline (Print_table.to_string_markdown (Print_table.make ~columns ~rows))\n| Name  | Score |\n|:------|------:|\n| Alice |    10 |\n| Bob   |     3 |\n\n- : unit = ()\n```\n\nwhich is rendered natively by GitHub like this:\n\n| Name  | Score |\n|:------|------:|\n| Alice |    10 |\n| Bob   |     3 |\n\n## Code Documentation\n\nThe code documentation of the latest release is built with `odoc` and published to `GitHub` pages [here](https://mbarbin.github.io/print-table).\n\n## Acknowledgments\n\nThis library has taken some inspiration from 2 existing and more feature-complete libraries, which we link to here for more advanced usages.\n\n- [Printbox](https://github.com/c-cube/printbox)\n- [Ascii_table](https://github.com/janestreet/textutils)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbarbin%2Fprint-table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmbarbin%2Fprint-table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbarbin%2Fprint-table/lists"}