{"id":20428240,"url":"https://github.com/imranbarbhuiya/ascii-pretty-table","last_synced_at":"2026-05-26T23:09:43.782Z","repository":{"id":43078267,"uuid":"438598273","full_name":"imranbarbhuiya/ascii-pretty-table","owner":"imranbarbhuiya","description":"A simple and lightweight library for creating pretty ASCII table.","archived":false,"fork":false,"pushed_at":"2022-06-08T07:33:44.000Z","size":177,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-09T01:41:39.964Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://imranbarbhuiya.github.io/ascii-pretty-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/imranbarbhuiya.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}},"created_at":"2021-12-15T11:06:29.000Z","updated_at":"2021-12-29T04:51:07.000Z","dependencies_parsed_at":"2022-09-14T08:50:43.753Z","dependency_job_id":null,"html_url":"https://github.com/imranbarbhuiya/ascii-pretty-table","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/imranbarbhuiya/ascii-pretty-table","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imranbarbhuiya%2Fascii-pretty-table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imranbarbhuiya%2Fascii-pretty-table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imranbarbhuiya%2Fascii-pretty-table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imranbarbhuiya%2Fascii-pretty-table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imranbarbhuiya","download_url":"https://codeload.github.com/imranbarbhuiya/ascii-pretty-table/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imranbarbhuiya%2Fascii-pretty-table/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33542514,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"ssl_error","status_checked_at":"2026-05-26T15:22:15.568Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2024-11-15T07:24:47.467Z","updated_at":"2026-05-26T23:09:43.746Z","avatar_url":"https://github.com/imranbarbhuiya.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![npm](https://img.shields.io/npm/v/ascii-pretty-table?style=for-the-badge)\n![npm](https://img.shields.io/npm/dw/ascii-pretty-table?style=for-the-badge)\n![GitHub](https://img.shields.io/github/license/imranbarbhuiya/ascii-pretty-table?style=for-the-badge)\n![Build Status](https://img.shields.io/github/workflow/status/imranbarbhuiya/ascii-pretty-table/Build/main?label=Build\u0026style=for-the-badge\u0026logo=TypeScript)\n![Test Status](https://img.shields.io/github/workflow/status/imranbarbhuiya/ascii-pretty-table/Test/main?label=Test\u0026style=for-the-badge\u0026logo=Jest)\n\n# ascii-pretty-table\n\n[ascii-pretty-table](https://www.npmjs.com/package/ascii-pretty-table), A simple and light weight library for creating ASCII tables.\n\n[docs](https://www.imranbarbhuiya.github.io/ascii-pretty-table/)\n\n## Uses\n\nInstall\n\n```bash\nnpm install ascii-pretty-table\n```\n\nExample\n\n```js\nconst ascii = require(\"ascii-pretty-table\"); //commonjs\nimport ascii from \"ascii-pretty-table\"; //es6\n\nconst table = new ascii(\"A Title\");\ntable.setHeading(\"Column 1\", \"Column 2\");\ntable.addRow(\"Row 1\", \"Row 2\");\ntable.addRow(\"Row 3\", \"Row 4\");\n\nconsole.log(table.toString());\n```\n\nResult\n\n```js\n+....................+\n|      A Title       |\n+''''''''''''''''''''+\n| Column 1 | Column 2|\n+''''''''''''''''''''+\n|   Row 1  |  Row 2  |\n+''''''''''''''''''''+\n|   Row 3  |  Row 4  |\n+''''''''''''''''''''+\n```\n\nYou can create table without headings as well.\n\nYou can export or import table as JSON.\n\n```js\nconst ascii = require(\"ascii-pretty-table\");\nconst table = new ascii(\"A Title\");\ntable.addRow(\"Row 1\", \"Row 2\");\ntable.addRow(\"Row 3\", \"Row 4\");\n\nconst json = table.toJSON();\n\nconst newTable = new ascii();\nnewTable.fromJSON(json);\n```\n\nChange separators\n\n```js\ntable.setSeparators({\n  top: \".\",\n  bottom: \"'\",\n  edge: \"|\",\n  fill: \"-\",\n  corner: \"+\",\n});\n```\n\n## Methods and Properties\n\nread docs for [ascii-pretty-table](https://imranbarbhuiya.github.io/ascii-pretty-table/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimranbarbhuiya%2Fascii-pretty-table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimranbarbhuiya%2Fascii-pretty-table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimranbarbhuiya%2Fascii-pretty-table/lists"}