{"id":13727274,"url":"https://github.com/maticzav/ink-table","last_synced_at":"2025-05-15T04:04:06.981Z","repository":{"id":24183995,"uuid":"100822958","full_name":"maticzav/ink-table","owner":"maticzav","description":"📐A table component for Ink.","archived":false,"fork":false,"pushed_at":"2025-05-14T08:29:27.000Z","size":1199,"stargazers_count":196,"open_issues_count":25,"forks_count":33,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-14T09:43:20.319Z","etag":null,"topics":["cli","ink","ink-table","react"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maticzav.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"maticzav","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2017-08-19T21:45:12.000Z","updated_at":"2025-05-05T14:39:32.000Z","dependencies_parsed_at":"2023-01-14T00:32:54.921Z","dependency_job_id":"494c8493-2905-4944-bc39-ca78c98fdc72","html_url":"https://github.com/maticzav/ink-table","commit_stats":{"total_commits":216,"total_committers":11,"mean_commits":"19.636363636363637","dds":"0.18518518518518523","last_synced_commit":"f59c0fb00dcfc3132d0fcf665035bbbf4814182f"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maticzav%2Fink-table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maticzav%2Fink-table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maticzav%2Fink-table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maticzav%2Fink-table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maticzav","download_url":"https://codeload.github.com/maticzav/ink-table/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254270640,"owners_count":22042858,"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":["cli","ink","ink-table","react"],"created_at":"2024-08-03T01:03:47.452Z","updated_at":"2025-05-15T04:04:06.943Z","avatar_url":"https://github.com/maticzav.png","language":"TypeScript","funding_links":["https://github.com/sponsors/maticzav"],"categories":["TypeScript"],"sub_categories":[],"readme":"# ink-table\n\n[![npm version](https://badge.fury.io/js/ink-table.svg)](https://badge.fury.io/js/ink-table)\n\n\u003e A table component for [Ink](https://github.com/vadimdemedes/ink).\n\n## Install\n\n```bash\nnpm install ink-table\n```\n\n## Usage\n\n```jsx\nimport Table from 'ink-table'\n\nconst data = [\n  {\n    name: 'Sosa Saunders',\n    gender: 'male',\n    age: 17,\n    email: 'sosa.saunders@mail.com',\n    phone: '+1 (809) 435-2786',\n  },\n  {\n    name: 'Angelina Kirk',\n    gender: 'female',\n    age: 3,\n    email: 'angelina@kirk.io',\n    phone: '+1 (870) 567-3516',\n  },\n  {\n    name: 'Bradford Rosales',\n    gender: 'male',\n    age: 20,\n    email: 'bradfordrosales@fast.com',\n    phone: '+1 (918) 573-3240',\n  },\n  {\n    name: 'Gwen Schroeder',\n    gender: 'female',\n    age: 17,\n    email: 'gwen@corp.xyz',\n    phone: '+1 (987) 417-2062',\n  },\n  {\n    name: 'Ellison Mann',\n    gender: 'male',\n    age: 5,\n    email: 'ellisonmann@katakana.com',\n    phone: '+1 (889) 411-2186',\n  },\n]\n\nconst Basic = () =\u003e \u003cTable data={data} /\u003e\n\nrender(\u003cBasic /\u003e)\n```\n\n\u003cimg src=\"media/demo.png\" width=\"720\"\u003e\n\n## Documentation\n\n```ts\ntype ScalarDict = {\n  [key: string]: string | number | boolean | null | undefined\n}\n\nexport type TableProps\u003cT extends ScalarDict\u003e = {\n  /**\n   * List of values (rows).\n   */\n  data: T[]\n  /**\n   * Columns that we should display in the table.\n   */\n  columns: (keyof T)[]\n  /**\n   * Cell padding.\n   */\n  padding: number\n  /**\n   * Header component.\n   */\n  header: (props: React.PropsWithChildren\u003c{}\u003e) =\u003e JSX.Element\n  /**\n   * Component used to render a cell in the table.\n   */\n  cell: (props: React.PropsWithChildren\u003c{}\u003e) =\u003e JSX.Element\n  /**\n   * Component used to render the skeleton of the table.\n   */\n  skeleton: (props: React.PropsWithChildren\u003c{}\u003e) =\u003e JSX.Element\n}\n```\n\n## License\n\nMIT © [Matic Zavadlal](http://github.com/maticzav)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaticzav%2Fink-table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaticzav%2Fink-table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaticzav%2Fink-table/lists"}