ConsoleTables 2.2.0
See the version list below for details.
dotnet add package ConsoleTables --version 2.2.0
NuGet\Install-Package ConsoleTables -Version 2.2.0
<PackageReference Include="ConsoleTables" Version="2.2.0" />
paket add ConsoleTables --version 2.2.0
#r "nuget: ConsoleTables, 2.2.0"
// Install ConsoleTables as a Cake Addin #addin nuget:?package=ConsoleTables&version=2.2.0 // Install ConsoleTables as a Cake Tool #tool nuget:?package=ConsoleTables&version=2.2.0
ConsoleTable
Have you ever just wanted to output flat structured POCO out to console? Sure you have! This class will let you print a nicely formatted table right to your console as easily as possible.
Example usage
static void Main(String[] args)
{
var table = new ConsoleTable("one", "two", "three");
table.AddRow(1, 2, 3)
.AddRow("this line should be longer", "yes it is", "oh");
table.Write();
Console.WriteLine();
var rows = Enumerable.Repeat(new Something(), 10);
ConsoleTable
.From<Something>(rows)
.Write(Format.Alternative);
Console.ReadKey();
}
Console output
FORMAT: Default:
--------------------------------------------------
| one | two | three |
--------------------------------------------------
| 1 | 2 | 3 |
--------------------------------------------------
| this line should be longer | yes it is | oh |
--------------------------------------------------
Count: 2
FORMAT: Alternative:
+----------------------------+-----------+-------+
| one | two | three |
+----------------------------+-----------+-------+
| 1 | 2 | 3 |
+----------------------------+-----------+-------+
| this line should be longer | yes it is | oh |
+----------------------------+-----------+-------+
Sample Output (Screenshot)
<img src="https://raw.github.com/khalidabuhakmeh/ConsoleTables/master/screenshot.PNG" alt="screenshot" />
The MIT License (MIT)
Copyright (c) 2013 Khalid Abuhakmeh
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp1.0 was computed. netcoreapp1.1 was computed. netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard1.3 is compatible. netstandard1.4 was computed. netstandard1.5 was computed. netstandard1.6 was computed. netstandard2.0 was computed. netstandard2.1 was computed. |
.NET Framework | net40 is compatible. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen30 was computed. tizen40 was computed. tizen60 was computed. |
Universal Windows Platform | uap was computed. uap10.0 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.0
- No dependencies.
-
.NETStandard 1.3
- NETStandard.Library (>= 1.6.1)
- System.Reflection.TypeExtensions (>= 4.3.0)
NuGet packages (30)
Showing the top 5 NuGet packages that depend on ConsoleTables:
Package | Downloads |
---|---|
NBomber
Modern and flexible load testing framework for Pull and Push scenarios, designed to test any system regardless a protocol (HTTP/WebSockets/AMQP etc) or a semantic model (Pull/Push). |
|
Network
Network library supporting: TCP, UDP, RSA, events and objects. Fast and simple, with only 48bit overhead per packet. Send and receive packets with async operations. Examples at: https://www.indie-dev.at/overview-en/ Documentation at: https://www.indie-dev.at/NetworkLib/HelpFile_6.2.5.21/ Fork me: https://github.com/Toemsel/Network |
|
Extensions.Pack
A set of useful extensions to make your code smooth and nice readable. |
|
Frank.Libraries.Extensions
Simply a bunch of extension methods that might help any developer |
|
AspNetCore.Simple.MsTest.Sdk
A simple sdk to write easy and fast tests for your web api's |
GitHub repositories (16)
Showing the top 5 popular GitHub repositories that depend on ConsoleTables:
Repository | Stars |
---|---|
Squidex/squidex
Headless CMS and Content Managment Hub
|
|
OpenSAGE/OpenSAGE
OpenSAGE is a free, open source re-implementation of SAGE, the 3D real time strategy (RTS) engine used in Command & Conquer: Generals and other RTS titles from EA Pacific. Written in C#. Not affiliated with EA.
|
|
jeremytammik/RevitLookup
Interactive Revit RFA and RVT project database exploration tool to view and navigate BIM element parameters, properties and relationships.
|
|
Flangvik/TeamFiltration
TeamFiltration is a cross-platform framework for enumerating, spraying, exfiltrating, and backdooring O365 AAD accounts
|
|
bitfaster/BitFaster.Caching
High performance, thread-safe in-memory caching primitives for .NET
|
Version | Downloads | Last updated |
---|---|---|
2.6.2 | 19,755 | 9/25/2024 |
2.6.1 | 301,896 | 10/27/2023 |
2.6.0 | 925 | 10/27/2023 |
2.5.0 | 75,234 | 7/27/2023 |
2.4.2 | 3,642,741 | 6/25/2020 |
2.4.1 | 307,922 | 3/9/2020 |
2.4.0 | 75,631 | 12/18/2019 |
2.3.0 | 315,181 | 3/20/2019 |
2.2.4 | 2,229 | 3/6/2019 |
2.2.0 | 119,754 | 3/30/2018 |
2.2.0-alpha.0 | 131 | 7/27/2023 |
2.1.0 | 71,856 | 12/20/2016 |
2.0.0 | 2,590 | 12/20/2016 |
1.1.2 | 17,577 | 6/23/2016 |
1.1.1 | 2,393 | 6/21/2016 |
1.1.0 | 7,814 | 4/19/2016 |
1.0.0 | 4,388 | 7/10/2014 |
Fix issue with column being too long