{"id":24440408,"url":"https://github.com/diyorumarkulov/tablerjs","last_synced_at":"2026-04-17T15:33:34.601Z","repository":{"id":257383694,"uuid":"858115460","full_name":"DiyorUmarkulov/tablerjs","owner":"DiyorUmarkulov","description":"Library with tools and utils to create tables.","archived":false,"fork":false,"pushed_at":"2024-09-18T08:40:41.000Z","size":68,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-12T14:22:46.738Z","etag":null,"topics":["library","node","nodejs","table","tools","typescript","typescript-library"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/DiyorUmarkulov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2024-09-16T10:37:47.000Z","updated_at":"2024-09-18T11:53:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"6920561b-155d-41dc-a190-52a2ea922fdc","html_url":"https://github.com/DiyorUmarkulov/tablerjs","commit_stats":null,"previous_names":["diyor2009/tablejs","diyorumarkulov/tablerjs","diyor2009/tablerjs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DiyorUmarkulov/tablerjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiyorUmarkulov%2Ftablerjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiyorUmarkulov%2Ftablerjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiyorUmarkulov%2Ftablerjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiyorUmarkulov%2Ftablerjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DiyorUmarkulov","download_url":"https://codeload.github.com/DiyorUmarkulov/tablerjs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiyorUmarkulov%2Ftablerjs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31934350,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T12:37:54.787Z","status":"ssl_error","status_checked_at":"2026-04-17T12:37:25.095Z","response_time":62,"last_error":"SSL_read: 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":["library","node","nodejs","table","tools","typescript","typescript-library"],"created_at":"2025-01-20T20:54:48.458Z","updated_at":"2026-04-17T15:33:34.584Z","avatar_url":"https://github.com/DiyorUmarkulov.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TablerJS\n\n**TablerJS** is a simple and lightweight library for generating tables from provided data. It allows you to easily define columns and build tables with custom rows.\n\n## Installation\n\nYou can install TablerJS using npm:\n\n```bash\nnpm install tablerjs\n```\n\nor with yarn:\n\n```bash\nyarn add tablerjs\n```\n\n## Usage\n\n### Define Table Structure\n\nTo create a table, you first need to define the columns by passing an object with column names and the number of columns to display into the `table` function.\n\nExample:\n\n```javascript\nimport { table } from \"tablerjs\";\n\nexport const exampleTable = table(\n  {\n    col1: \"Column 1\",\n    col2: \"Lorem ipsum\",\n  },\n);\n```\n\n### Adding Rows to the Table\n\nTo populate a table with data, pass an array of strings to a previously defined table function. Each string must correspond to the keys of certain columns. If any column is not filled and you use TypeScript, it will throw an error and throw a type error.\n\n\u003cimg src=\"assets/screenshots/type_error.png\"\u003e\n\nExample:\n\n```javascript\nconst rows = [\n  {\n    col1: \"Row 1\",\n    col2: \"Col 2 value\",\n  },\n  {\n    col1: \"Row 2\",\n    col2: \"Col 2 value\",\n  },\n];\n\nconst tableView = exampleTable(rows);\n```\n\n### Full Example\n\n```javascript\nimport { table } from \"tablerjs\";\n\n// Define a table with two columns\nexport const exampleTable = table(\n  {\n    col1: \"Column 1\",\n    col2: \"Lorem ipsum\",\n  },\n);\n\n// Array of rows to populate the table\nconst rows = [\n  {\n    col1: \"Row 1\",\n    col2: \"Col 2 value\",\n  },\n  {\n    col1: \"Row 2\",\n    col2: \"Col 2 value\",\n  },\n];\n\n// Generate the table from the provided rows\nconst tableView = exampleTable(rows);\n\n// tableView now contains the table structure with the given data\n```\n\n### Result\n\n\u003cimg src=\"assets/screenshots/table_result.png\"\u003e\n\n### Arguments\n\n- **`header`** (object): Defines the structure of the table where the keys are the column identifiers and the values are the column headers.\n\n## Support\n\nIf you have any questions or issues, feel free to open an issue in the repository or reach out to the author on GitHub.\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiyorumarkulov%2Ftablerjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiyorumarkulov%2Ftablerjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiyorumarkulov%2Ftablerjs/lists"}