DanielStout.AsciiTableFormatter 1.1.0

Library for formatting objects as ASCII Tables

Install-Package DanielStout.AsciiTableFormatter -Version 1.1.0
dotnet add package DanielStout.AsciiTableFormatter --version 1.1.0
<PackageReference Include="DanielStout.AsciiTableFormatter" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DanielStout.AsciiTableFormatter --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

AsciiTableFormatter

A C# library to generate ASCII Tables

Examples:

var list = new[]
{
    new TestSix()
    {
        One = 3,
        Two = "Hi",
        Three = 123.34M
    },
    new TestSix()
    {
        One = 385745,
        Two = "???",
        Three = 84745.3498489754M
    }
};
string output = Formatter.Format(list);
Console.WriteLine(output);

Output:

o--------o-----o------------------o
|    One | Two |            Three |
o--------o-----o------------------o
|      3 | Hi  |           123.34 |
| 385745 | ??? | 84745.3498489754 |
o--------o-----o------------------o

AsciiTableFormatter

A C# library to generate ASCII Tables

Examples:

var list = new[]
{
    new TestSix()
    {
        One = 3,
        Two = "Hi",
        Three = 123.34M
    },
    new TestSix()
    {
        One = 385745,
        Two = "???",
        Three = 84745.3498489754M
    }
};
string output = Formatter.Format(list);
Console.WriteLine(output);

Output:

o--------o-----o------------------o
|    One | Two |            Three |
o--------o-----o------------------o
|      3 | Hi  |           123.34 |
| 385745 | ??? | 84745.3498489754 |
o--------o-----o------------------o

Release Notes

https://github.com/DanStout/AsciiTableFormatter/blob/master/Docs/CHANGELOG.md

  • .NETStandard 2.0

    • No dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.1.0 525 12/16/2017
1.0.0 325 12/8/2017