{"id":26604111,"url":"https://github.com/helmare/climt","last_synced_at":"2025-10-11T03:05:09.717Z","repository":{"id":57145764,"uuid":"417853511","full_name":"Helmare/climt","owner":"Helmare","description":"A NodeJs minimalist table renderer for CLI's with zero dependencies.","archived":false,"fork":false,"pushed_at":"2024-02-04T19:07:11.000Z","size":123,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-11T11:58:02.545Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/climt","language":"TypeScript","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/Helmare.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-16T14:32:12.000Z","updated_at":"2024-02-03T15:17:48.000Z","dependencies_parsed_at":"2022-09-06T00:22:19.929Z","dependency_job_id":null,"html_url":"https://github.com/Helmare/climt","commit_stats":null,"previous_names":["hazdryx/climt","happiidreamer/climt"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Helmare%2Fclimt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Helmare%2Fclimt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Helmare%2Fclimt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Helmare%2Fclimt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Helmare","download_url":"https://codeload.github.com/Helmare/climt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245156880,"owners_count":20569929,"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":"2025-03-23T19:28:21.980Z","updated_at":"2025-10-11T03:05:04.691Z","avatar_url":"https://github.com/Helmare.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `C`ommand `L`ine `I`nterface: `M`inimalist `T`ables\nclimt is a minimalist table renderer for CLI's with zero dependencies.\n\n\n## Example\n```ts\nimport { ClimtTable } from 'climt';\ntype Data = {\n  a?: number|null;\n  sub?: {\n    b: number\n  }\n};\n\n// Create table.\nconst table = new ClimtTable\u003cData\u003e();\n\n// Column bound to the a property\ntable.column('Alpha', 'a')\n// Column bound to the sub.b property, with styling\ntable.column('Beta', 'sub.b', { align: 'right' })\n// Column using a function for it's data.\ntable.column('Charlie', row =\u003e {\n  if (row.a \u0026\u0026 row.sub \u0026\u0026 row.sub.b) {\n    return (row.a + row.sub.b).toString();\n  }\n});\n\n// Formats header.\ntable.format((col, row, content) =\u003e {\n  if (row == -1) {\n    return content.toUpperCase();\n  }\n  else {\n    return content;\n  }\n});\n\n// Renders table with the data.\ntable.render([\n  { a: 5, sub: { b: 5 } },\n  { a: -1, sub: { b: 10 } },\n  { a: 10, sub: { b: 2 } },\n  { a: 15, sub: { b: -6 } },\n  { a: null, sub: { b: 10 } },\n  { a: 20 }\n]);\n```\n\n### Outputs\n```\n ALPHA | BETA | CHARLIE \n-------+------+---------\n 5     |    5 | 10\n -1    |   10 | 9\n 10    |    2 | 12\n 15    |   -6 | 9\n       |   10 | \n 20    |      |\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelmare%2Fclimt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhelmare%2Fclimt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelmare%2Fclimt/lists"}