{"id":17003841,"url":"https://github.com/cldwalker/table","last_synced_at":"2025-04-06T03:08:56.309Z","repository":{"id":3563251,"uuid":"4624951","full_name":"cldwalker/table","owner":"cldwalker","description":"Display ascii tables for almost any data structure with ease.","archived":false,"fork":false,"pushed_at":"2021-12-27T16:07:09.000Z","size":54,"stargazers_count":110,"open_issues_count":5,"forks_count":17,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-30T02:05:55.624Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cldwalker.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-06-11T13:03:01.000Z","updated_at":"2025-02-02T13:02:55.000Z","dependencies_parsed_at":"2022-07-28T22:28:58.131Z","dependency_job_id":null,"html_url":"https://github.com/cldwalker/table","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cldwalker%2Ftable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cldwalker%2Ftable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cldwalker%2Ftable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cldwalker%2Ftable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cldwalker","download_url":"https://codeload.github.com/cldwalker/table/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247427006,"owners_count":20937201,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-14T04:32:51.853Z","updated_at":"2025-04-06T03:08:56.293Z","avatar_url":"https://github.com/cldwalker.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Description\n\nThis library displays ascii tables that automatically fit in your terminal and handle most data structures.\n\n[![Build Status](https://travis-ci.org/cldwalker/table.png?branch=master)](https://travis-ci.org/cldwalker/table)\n\n## Install\n\nTo have it in a lein project, add to your project.clj:\n\n    [table \"0.5.0\"]\n\nTo have it in a deps.edn project, add to your deps.edn:\n\n    {table/table {:mvn/version \"0.5.0\"}}\n\nTo use with [babashka](https://github.com/babashka/babashka), add to bb.edn.\n\n## Usage\n\ntable handles rendering combinations of maps, vecs, lists and sets nested in one another.\n\n    $ lein repl\n    user=\u003e (require '[table.core :as t])\n    nil\n\n    ; These three yields the same table\n    user=\u003e (t/table [[\"1\" \"2\"] [\"3\" \"4\"]])\n    user=\u003e (t/table '((1 2) (3 4)))\n    user=\u003e (t/table #{[1 2] [3 4]})\n    +---+---+\n    | 1 | 2 |\n    +---+---+\n    | 3 | 4 |\n    +---+---+\n\n    user=\u003e (t/table [{:a 11} {:a 3 :b 22}])\n    +----+----+\n    | a  | b  |\n    +----+----+\n    | 11 |    |\n    | 3  | 22 |\n    +----+----+\n\ntable can render different styles of tables:\n\n    user=\u003e (t/table [ [1 2] [3 4]] :style :unicode)\n    ┌───┬───┐\n    │ 1 │ 2 │\n    ├───┼───┤\n    │ 3 ╎ 4 │\n    └───┴───┘\n\n    user=\u003e (t/table [ [1 2] [3 4]] :style :org)\n    |---+---|\n    | 1 | 2 |\n    |---+---|\n    | 3 | 4 |\n    |---+---|\n\n    # Yes, these will generate tables for github's markdown\n    user=\u003e (t/table [ [10 20] [3 4]] :style :github-markdown)\n\n    | 10 | 20 |\n    |--- | ---|\n    | 3  | 4  |\n\ntable can also render custom styles:\n\n    user\u003e (t/table [[10 20] [3 4]] :style {:top [\"◤ \" \" ▼ \" \" ◥\"]\n                                   :top-dash \"✈︎\"\n                                   :middle [\"▶︎ \" \"   \" \" ◀︎\"]\n                                   :dash \"✂︎\"\n                                   :bottom [\"◣ \" \" ▲ \" \" ◢\"]\n                                   :bottom-dash \"☺︎\"\n                                   :header-walls [\"  \" \"   \" \"  \"]\n                                   :body-walls [\"  \" \"   \" \"  \"] })\n    ◤ ✈︎✈︎ ▼ ✈︎✈︎ ◥\n      10   20\n    ▶︎ ✂︎✂︎   ✂︎✂︎ ◀︎\n      3    4\n    ◣ ☺︎☺︎ ▲ ☺︎☺︎ ◢\n\ntable can handle plain maps and vectors of course:\n\n    user=\u003e (t/table (meta #'doc))\n    +-----------+---------------------------------------------------------------+\n    | key       | value                                                         |\n    +-----------+---------------------------------------------------------------+\n    | :macro    | true                                                          |\n    | :ns       | clojure.repl                                                  |\n    | :name     | doc                                                           |\n    | :arglists | ([name])                                                      |\n    | :added    | 1.0                                                           |\n    | :doc      | Prints documentation for a var or special form given its name |\n    | :line     | 120                                                           |\n    | :file     | clojure/repl.clj                                              |\n    +-----------+---------------------------------------------------------------+\n\n    user=\u003e (t/table (seq (.getURLs (java.lang.ClassLoader/getSystemClassLoader))))\n    +--------------------------------------------------+\n    | value                                            |\n    +--------------------------------------------------|\n    | file:/Users/me/code/gems/table/test/             |\n    | file:/Users/me/code/gems/table/src/              |\n    | file:/Users/me/code/gems/table/dev-resources     |\n    | file:/Users/me/code/gems/table/resources         |\n    | file:/Users/me/code/gems/table/target/classes/   |\n    ...\n\n## Configuration\n\nIf your terminal width isn't being auto-detected, you can execute this in your shell before using\nthe repl: `export COLUMNS`. Alternatively you can bind/alter table.width/\\*width\\* to your desired\nwidth.\n\n## Similar libraries\n* Clojure 1.5.0 comes with a similar function clojure.pprint/print-table\n* [doric](https://github.com/joegallo/doric) is more full-featured than print-table, supporting\n  formats other than text.\n\ntable improves on these alternatives by rendering more data structures, supporting\ndifferent ascii style tables and resizing to fit your terminal.\n\n## Bugs/Issues\nPlease report them [on github](http://github.com/cldwalker/table/issues).\n\n## Contributing\n[See here](https://tagaholic.me/contributing.html)\n\n## TODO\n* Handle no rows\n* Handle vecs with different sizes\n* Escape tabs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcldwalker%2Ftable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcldwalker%2Ftable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcldwalker%2Ftable/lists"}