{"id":21346407,"url":"https://github.com/x0k/json-table","last_synced_at":"2025-10-05T07:53:49.045Z","repository":{"id":138768803,"uuid":"582802123","full_name":"x0k/json-table","owner":"x0k","description":"Set of tools for converting JSON data into tables (HTML, XLSX, ASCII).","archived":false,"fork":false,"pushed_at":"2025-08-26T15:50:33.000Z","size":1245,"stargazers_count":14,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-23T04:18:19.342Z","etag":null,"topics":["ascii","html-table","json","tables","xlsx"],"latest_commit_sha":null,"homepage":"https://x0k.dev/json-table/","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/x0k.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,"zenodo":null}},"created_at":"2022-12-27T22:55:15.000Z","updated_at":"2025-08-26T15:50:02.000Z","dependencies_parsed_at":"2024-03-08T20:10:34.942Z","dependency_job_id":"a38c3f8a-e236-4757-ad8d-258d582d1ed4","html_url":"https://github.com/x0k/json-table","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/x0k/json-table","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x0k%2Fjson-table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x0k%2Fjson-table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x0k%2Fjson-table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x0k%2Fjson-table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/x0k","download_url":"https://codeload.github.com/x0k/json-table/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x0k%2Fjson-table/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278425498,"owners_count":25984686,"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","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["ascii","html-table","json","tables","xlsx"],"created_at":"2024-11-22T02:08:32.187Z","updated_at":"2025-10-05T07:53:49.029Z","avatar_url":"https://github.com/x0k.png","language":"TypeScript","readme":"# JSON Table\n\nSet of tools for converting JSON data into tables (HTML, XLSX, ASCII).\n\n- [Web App](https://x0k.github.io/json-table/)\n- [Documentation](https://x0k.github.io/json-table/docs/)\n\n## Install\n\n```shell\nnpm install @json-table/core\n```\n\n## Usage\n\n```typescript\nimport { makeBlockFactory } from \"@json-table/core/json-to-table\";\nimport { blockToASCII } from \"@json-table/core/block-to-ascii\";\nimport { blockToHTML } from '@json-table/core/block-to-html';\n\nconst createBlock = makeBlockFactory({\n  cornerCellValue: \"№\",\n  joinPrimitiveArrayValues: true,\n});\n\nconst block = createBlock(data)\n\nconst asciiTable = blockToASCII(block);\n\n/* Or */\n\nconst htmlTable = blockToHTML(block);\n\n```\n\n\u003e [!TIP]\n\u003e See [block-to-html](https://github.com/x0k/json-table/blob/main/packages/core/src/block-to-html.ts) source code to create your own renderer\n\nInput data:\n\n```json\n{\n  \"key\": \"val\",\n  \"primitiveArr\": [1, \"two\", false],\n  \"object\": {\n    \"key1\": \"value1\",\n    \"key2\": 789,\n    \"key3\": {\n      \"nestedKey\": \"nestedVal\"\n    }\n  },\n  \"nestedArray\": [\n    {\n      \"name\": \"John\",\n      \"age\": 30,\n      \"isStud\": false\n    },\n    {\n      \"name\": \"Alice\",\n      \"age\": 25,\n      \"isStud\": true\n    }\n  ]\n}\n\n```\n\nOutput:\n\n```\n+-----+---------------+---------------------------+--------------------------+\n| key | primitiveArr  |          object           |         nestedArray      |\n+-----+---------------+--------+------+-----------+---+-------+-----+--------+\n|     |               |  key1  | key2 |   key3    | № | name  | age | isStud |\n|     |               +--------+------+-----------+---+-------+-----+--------+\n| val | 1, two, false |        |      | nestedKey | 1 | John  |  30 | false  |\n|     |               | value1 |  789 +-----------+---+-------+-----+--------+\n|     |               |        |      | nestedVal | 2 | Alice |  25 | true   |\n+-----+---------------+--------+------+-----------+---+-------+-----+--------+\n```\n\n## License\n\nMIT\n\n## See also\n\n- Use this app to render JSON responses as tables in your browser by [WebMaid](https://github.com/x0k/web-maid/tree/main/examples/json-to-table)\n- Simple build automation tool [mk](https://github.com/x0k/mk)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx0k%2Fjson-table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fx0k%2Fjson-table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx0k%2Fjson-table/lists"}