minhhungit / Consoletableext
Licence: mit
A fluent library to print out a nicely formatted table in a console application C#
Stars: ✭ 158
Projects that are alternatives of or similar to Consoletableext
Node Console Probe
Inspect JavaScript object methods and properties in the console.
Stars: ✭ 139 (-12.03%)
Mutual labels: console
Go Logger
一个简单而强大的 golang 日志工具包,支持同步和异步输出到 命令行,文件, api 接口,文件支持按文件大小,文件行数,日期切分;A simple and powerful golang logging toolkit that supports synchronous and asynchronous output to the console, file, API interfaces, file support by file size, file line number, date sharding.
Stars: ✭ 152 (-3.8%)
Mutual labels: console
Efcore Fluentstoredprocedure
EFCore Extension that allows a means to map a stored procedure to a class, fluently.
Stars: ✭ 138 (-12.66%)
Mutual labels: fluent
Storybook Addon Console
storybook-addon. Redirects console output into action logger panel
Stars: ✭ 138 (-12.66%)
Mutual labels: console
Console Badge
🎨 Create simple badges in the browser console
Stars: ✭ 130 (-17.72%)
Mutual labels: console
Package Builder
[READ-ONLY] Speed up your package DI containers integration and console apps to Symfony and Nette
Stars: ✭ 152 (-3.8%)
Mutual labels: console
Consolebundle
Commandline interface in browser for Symfony2
Stars: ✭ 138 (-12.66%)
Mutual labels: console
Graphicscontrols
Experimental GraphicsControls - Build drawn controls (Cupertino, Fluent and Material)
Stars: ✭ 149 (-5.7%)
Mutual labels: fluent
Quicklogger
Library for logging on files, console, memory, email, rest, eventlog, syslog, slack, telegram, redis, logstash, elasticsearch, influxdb, graylog, Sentry, Twilio, ide debug messages and throw events for Delphi/Firemonkey/freepascal/.NET (Windows/Linux/OSX/IOS/Android).
Stars: ✭ 137 (-13.29%)
Mutual labels: console
Lazyhub
lazyhub - Terminal UI Client for GitHub using gocui.
Stars: ✭ 133 (-15.82%)
Mutual labels: console
Clog
Package clog is a channel-based logging package for Go
Stars: ✭ 151 (-4.43%)
Mutual labels: console
Dotnet Console Games
Game examples implemented in .NET console applications primarily for educational purposes.
Stars: ✭ 157 (-0.63%)
Mutual labels: console
Smenu
smenu started as a lightweight and flexible terminal menu generator, but quickly evolved into a powerful and versatile CLI selection tool for interactive or scripting use.
Stars: ✭ 1,906 (+1106.33%)
Mutual labels: console
Python Sploitkit
Devkit for building Metasploit-like consoles
Stars: ✭ 148 (-6.33%)
Mutual labels: console
ConsoleTableExt
A library to print out a nicely formatted table in a console application C#
Nuget
Install-Package ConsoleTableExt
Feature
- Support box-drawing characters
- Table alignment (left right and center)
- Column alignment (left/right/center)
- Table can have TITLE, can change text color and background color of title, support title alignment (left/right/center)
- Support power char-map, strong customization ability
- Contain some popular formas like Markdown table...
- Support text formatter (include header)
- Support many kind data type: DataTable, List...
- Support metadata row (placed at top or bottom of table)
- Column min-length
- support .NET Framework >= 3.5, .NET core
- ...
How to use:
var tableData = new List<List<object>>
{
new List<object>{ "Sakura Yamamoto", "Support Engineer", "London", 46},
new List<object>{ "Serge Baldwin", "Data Coordinator", "San Francisco", 28, "something else" },
new List<object>{ "Shad Decker", "Regional Director", "Edinburgh"},
};
Simple example with default format:
ConsoleTableBuilder
.From(tableData)
.ExportAndWriteLine();
More example with existing format Alternative:
ConsoleTableBuilder
.From(tableData)
.WithFormat(ConsoleTableBuilderFormat.Alternative)
.ExportAndWriteLine(TableAligntment.Center);
Advance example with custom format using CharMap:
ConsoleTableBuilder
.From(tableData)
.WithTitle("CONTACTS ", ConsoleColor.Yellow, ConsoleColor.DarkGray)
.WithColumn("Id", "First Name", "Sur Name")
.WithMinLength(new Dictionary<int, int> {
{ 1, 25 },
{ 2, 25 }
})
.WithTextAlignment(new Dictionary<int, TextAligntment>
{
{2, TextAligntment.Right }
})
.WithCharMapDefinition(new Dictionary<CharMapPositions, char> {
{CharMapPositions.BottomLeft, '=' },
{CharMapPositions.BottomCenter, '=' },
{CharMapPositions.BottomRight, '=' },
{CharMapPositions.BorderTop, '=' },
{CharMapPositions.BorderBottom, '=' },
{CharMapPositions.BorderLeft, '|' },
{CharMapPositions.BorderRight, '|' },
{CharMapPositions.DividerY, '|' },
})
.WithHeaderCharMapDefinition(new Dictionary<HeaderCharMapPositions, char> {
{HeaderCharMapPositions.TopLeft, '=' },
{HeaderCharMapPositions.TopCenter, '=' },
{HeaderCharMapPositions.TopRight, '=' },
{HeaderCharMapPositions.BottomLeft, '|' },
{HeaderCharMapPositions.BottomCenter, '-' },
{HeaderCharMapPositions.BottomRight, '|' },
{HeaderCharMapPositions.Divider, '|' },
{HeaderCharMapPositions.BorderTop, '=' },
{HeaderCharMapPositions.BorderBottom, '-' },
{HeaderCharMapPositions.BorderLeft, '|' },
{HeaderCharMapPositions.BorderRight, '|' },
})
.ExportAndWriteLine(TableAligntment.Right);
Check more demo here https://github.com/minhhungit/ConsoleTableExt/blob/master/Src/ConsoleTableApp/Program.cs
Char Map Definition
Header Char Map
There are many ways to contribute to ConsoleTableExt, either contribute issue/code directly or buy me a cup of coffee
Inspired by
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].