{"id":21240678,"url":"https://github.com/sdmg15/cli-table-cpp","last_synced_at":"2025-07-10T20:30:46.207Z","repository":{"id":65980358,"uuid":"182459565","full_name":"sdmg15/cli-table-cpp","owner":"sdmg15","description":"Pretty unicode tables for the CLI with CPP","archived":false,"fork":false,"pushed_at":"2020-10-15T06:33:49.000Z","size":180,"stargazers_count":17,"open_issues_count":0,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-07-06T06:56:40.051Z","etag":null,"topics":["cli-table-cpp","cmake","cpp","unicode"],"latest_commit_sha":null,"homepage":null,"language":"C++","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/sdmg15.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-20T22:18:49.000Z","updated_at":"2025-03-17T17:54:46.000Z","dependencies_parsed_at":"2023-02-19T19:15:27.198Z","dependency_job_id":null,"html_url":"https://github.com/sdmg15/cli-table-cpp","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/sdmg15/cli-table-cpp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdmg15%2Fcli-table-cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdmg15%2Fcli-table-cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdmg15%2Fcli-table-cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdmg15%2Fcli-table-cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sdmg15","download_url":"https://codeload.github.com/sdmg15/cli-table-cpp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdmg15%2Fcli-table-cpp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264652617,"owners_count":23644289,"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-table-cpp","cmake","cpp","unicode"],"created_at":"2024-11-21T00:52:33.930Z","updated_at":"2025-07-10T20:30:45.965Z","avatar_url":"https://github.com/sdmg15.png","language":"C++","readme":"# cli-table-cpp\nPretty unicode tables for the CLI with CPP\n\n[ ![Download](https://api.bintray.com/packages/sdmg15/cliTable/cli-table-cpp/images/download.svg) ](https://bintray.com/sdmg15/cliTable/cli-table-cpp/_latestVersion)\n\nI was looking for a simple and beautiful unicode table for the CLI for a toy \nproject written in C++ but didn't found one that satisfy my needs then I build one :smile:\nBase on this [JavaScript project](https://github.com/Automattic/cli-table) .\n\n# Compiling and Running the tests \n\n  ## Requirements \n\n  - CMAKE 3.10 or greater\n  - Clang or G++ 7.3.0 (That supports C++17)\n  - Conan - C++ package manager\n  \n## Compiling \n\nIf all requirements are met then you can build using cmake :\n\nThen run the command according to the targetted OS \n\n```s\n(win)\n$ cmake .. -G \"Visual Studio 15 Win64\"\n$ cmake --build . --config Release\n\n(linux, mac)\n$ cmake .. -G \"Unix Makefiles\" -DCMAKE_BUILD_TYPE=Release\n$ cmake --build ..\n\n```\n\nThe resulting binary will be the located in the `bin` folder.\n\nTo run test with **make**\n\n```\nmake build run clean\n``` \n\n## Basics usage \n\nYou need first to include the header files `Table.hpp` and `Utils.hpp`.\n\n```cpp\n\n    #include \u003ciostream\u003e\n    #include \"Table.hpp\"\n    #include \u003cstring\u003e\n\n    // Options for the table to draw\n    CliTable::Options opt;\n    // Contructing the table structure\n    TableBody content = {\n                            { \"value \\nmultilines ?\"     ,        \"Nope \\njust \\ntesting\" },\n                            { \"value Yes\\n are you sure?\" ,              \"Teufy\"      },\n                            { \"This \\nis me !\"         ,     \"Heuh \\nanother one\"  },\n                            { \"value \\nmultilines ?\"     ,        \"Nope \\njust \\ntesting\" },\n                            { \"value Yes\\n are you sure?\" ,              \"Teufy\"      },\n                        };\n    // Or you can use the push_back() method \n    content.push_back( { \"This \\nis me !\"         ,     \"Heuh \\nanother one\"  } );\n\n    CliTable::Table table(opt,content);\n    //Generating the final table \n\n    table.generate();\n    \n```\n\n     \n# Result after running binary\n\nHere is the result in image of what you can get after running the tests or after your own customization: \n\n![Result](images/example_one.png)\n\n![Result Multilines](images/example_two.png)\n  \n# Contributing \n\nIf you found a bug or want to add a new feature, create a new branch and work on it \nafter when it's ready open a pull request and after reviewing the branch will be merge into the master \nbranch.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdmg15%2Fcli-table-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsdmg15%2Fcli-table-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdmg15%2Fcli-table-cpp/lists"}