{"id":13431061,"url":"https://github.com/minhhungit/ConsoleTableExt","last_synced_at":"2025-03-16T06:32:05.296Z","repository":{"id":37952363,"uuid":"111793683","full_name":"minhhungit/ConsoleTableExt","owner":"minhhungit","description":"A fluent library to print out a nicely formatted table in a console application C# ","archived":false,"fork":false,"pushed_at":"2024-07-18T22:23:40.000Z","size":781,"stargazers_count":336,"open_issues_count":5,"forks_count":37,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-11T05:11:16.504Z","etag":null,"topics":["console","console-table","fluent","text-table"],"latest_commit_sha":null,"homepage":"","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/minhhungit.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":"FUNDING.yml","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},"funding":{"github":["minhhungit"],"ko_fi":"minhhungit","custom":["https://www.paypal.me/minhhungit"]}},"created_at":"2017-11-23T10:06:46.000Z","updated_at":"2025-03-07T07:50:10.000Z","dependencies_parsed_at":"2024-01-02T22:38:27.899Z","dependency_job_id":"723aac22-bbd1-470a-8667-a1e46c43b345","html_url":"https://github.com/minhhungit/ConsoleTableExt","commit_stats":{"total_commits":97,"total_committers":4,"mean_commits":24.25,"dds":0.08247422680412375,"last_synced_commit":"c704911c6b60d4dbffa82e8573922857c9950f63"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minhhungit%2FConsoleTableExt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minhhungit%2FConsoleTableExt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minhhungit%2FConsoleTableExt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minhhungit%2FConsoleTableExt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/minhhungit","download_url":"https://codeload.github.com/minhhungit/ConsoleTableExt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243835952,"owners_count":20355611,"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":["console","console-table","fluent","text-table"],"created_at":"2024-07-31T02:01:00.201Z","updated_at":"2025-03-16T06:32:04.892Z","avatar_url":"https://github.com/minhhungit.png","language":"C#","readme":"# ConsoleTableExt [![Build status](https://ci.appveyor.com/api/projects/status/e4ugtobtcrjhk9p4?svg=true)](https://ci.appveyor.com/project/minhhungit/consoletableext) \u003ca href=\"https://www.nuget.org/packages/ConsoleTableExt/\"\u003e\u003cimg src=\"https://img.shields.io/nuget/v/ConsoleTableExt.svg?style=flat\" /\u003e\u003c/a\u003e\n\nA library to print out a nicely formatted table in a console application C#\n\n### Nuget\n\u003e https://www.nuget.org/packages/ConsoleTableExt/\n\n### Feature\n- Support [box-drawing characters](https://en.wikipedia.org/wiki/Box-drawing_character)\n- Table alignment (left right and center)\n- Column alignment (left/right/center)\n- Table can have TITLE, can change text color and background color of title, support title alignment (left/right/center)\n- Support power char-map, strong customization ability\n- Contain some popular formas like Markdown table...\n- Support text formatter (include header)\n- Support many kind data type: DataTable, List\u003cobject\u003e...\n- Support metadata row (placed at top or bottom of table)\n- Column min-length \n- support .NET Framework \u003e= 3.5, .NET core\n- ...\n\n### How to use:\n\n```csharp\nvar tableData = new List\u003cList\u003cobject\u003e\u003e\n{\n    new List\u003cobject\u003e{ \"Sakura Yamamoto\", \"Support Engineer\", \"London\", 46},\n    new List\u003cobject\u003e{ \"Serge Baldwin\", \"Data Coordinator\", \"San Francisco\", 28, \"something else\" },\n    new List\u003cobject\u003e{ \"Shad Decker\", \"Regional Director\", \"Edinburgh\"},\n};\n```\n\n**Simple example with default format:**\n\n```csharp\nConsoleTableBuilder\n    .From(tableData)\n    .ExportAndWriteLine();\n```\n\n**More example with existing format Alternative:**\n\n```csharp\nConsoleTableBuilder\n    .From(tableData)\n    .WithFormat(ConsoleTableBuilderFormat.Alternative)\n    .ExportAndWriteLine(TableAligntment.Center);\n```\n\n**Advance example with custom format using CharMap:**\n\n```csharp\nConsoleTableBuilder\n    .From(tableData)\n    .WithTitle(\"CONTACTS \", ConsoleColor.Yellow, ConsoleColor.DarkGray)\n    .WithColumn(\"Id\", \"First Name\", \"Sur Name\")\n    .WithMinLength(new Dictionary\u003cint, int\u003e {\n        { 1, 25 },\n        { 2, 25 }\n    })\n    .WithTextAlignment(new Dictionary\u003cint, TextAligntment\u003e\n    {\n        {2, TextAligntment.Right }\n    })\n    .WithCharMapDefinition(new Dictionary\u003cCharMapPositions, char\u003e {\n        {CharMapPositions.BottomLeft, '=' },\n        {CharMapPositions.BottomCenter, '=' },\n        {CharMapPositions.BottomRight, '=' },\n        {CharMapPositions.BorderTop, '=' },\n        {CharMapPositions.BorderBottom, '=' },\n        {CharMapPositions.BorderLeft, '|' },\n        {CharMapPositions.BorderRight, '|' },\n        {CharMapPositions.DividerY, '|' },\n    })\n    .WithHeaderCharMapDefinition(new Dictionary\u003cHeaderCharMapPositions, char\u003e {\n        {HeaderCharMapPositions.TopLeft, '=' },\n        {HeaderCharMapPositions.TopCenter, '=' },\n        {HeaderCharMapPositions.TopRight, '=' },\n        {HeaderCharMapPositions.BottomLeft, '|' },\n        {HeaderCharMapPositions.BottomCenter, '-' },\n        {HeaderCharMapPositions.BottomRight, '|' },\n        {HeaderCharMapPositions.Divider, '|' },\n        {HeaderCharMapPositions.BorderTop, '=' },\n        {HeaderCharMapPositions.BorderBottom, '-' },\n        {HeaderCharMapPositions.BorderLeft, '|' },\n        {HeaderCharMapPositions.BorderRight, '|' },\n    })\n    .ExportAndWriteLine(TableAligntment.Right);\n```\n\n\u003cimg src=\"https://raw.githubusercontent.com/minhhungit/ConsoleTableExt/master/wiki/Images/demo1.png\" style=\"width: 100%;\" /\u003e\n\nCheck more demo here https://github.com/minhhungit/ConsoleTableExt/blob/master/Src/ConsoleTableApp/Program.cs\n\n\u003cimg src=\"https://raw.githubusercontent.com/minhhungit/ConsoleTableExt/master/wiki/Images/demo.png\" style=\"width: 100%;\" /\u003e\n\n### Char Map Definition\n\n\u003cimg src=\"https://raw.githubusercontent.com/minhhungit/ConsoleTableExt/master/wiki/Images/CharMapPositions.png\" style=\"width: 100%;\" /\u003e\n\n### Header Char Map\n\n\u003cimg src=\"https://raw.githubusercontent.com/minhhungit/ConsoleTableExt/master/wiki/Images/HeaderCharMapPositions.png\" style=\"width: 100%;\" /\u003e\n\n\n**There are many ways to contribute to ConsoleTableExt, either contribute issue/code directly or buy me a cup of coffee**\n\n\u003ca href='https://ko-fi.com/I2I13GAGL' target='_blank'\u003e\u003cimg height='36' style='border:0px;height:36px;' src='https://cdn.ko-fi.com/cdn/kofi4.png?v=2' border='0' alt='Buy Me a Coffee at ko-fi.com' /\u003e\u003c/a\u003e\n\n### Inspired by \n- \u003ca href=\"https://github.com/khalidabuhakmeh/ConsoleTables\"\u003ekhalidabuhakmeh/ConsoleTables\u003c/a\u003e\n","funding_links":["https://github.com/sponsors/minhhungit","https://ko-fi.com/minhhungit","https://www.paypal.me/minhhungit","https://ko-fi.com/I2I13GAGL'"],"categories":["Frameworks, Libraries and Tools","框架, 库和工具","Misc","杂项","Audio"],"sub_categories":["Misc","大杂烩","GUI - other"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminhhungit%2FConsoleTableExt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminhhungit%2FConsoleTableExt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminhhungit%2FConsoleTableExt/lists"}