EchoSpec 1.0.2
dotnet add package EchoSpec --version 1.0.2
NuGet\Install-Package EchoSpec -Version 1.0.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="EchoSpec" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EchoSpec" Version="1.0.2" />
<PackageReference Include="EchoSpec" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add EchoSpec --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EchoSpec, 1.0.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package EchoSpec@1.0.2
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=EchoSpec&version=1.0.2
#tool nuget:?package=EchoSpec&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
EchoSpec
A zero-dependency .NET library for turning tabular data into Console, Markdown, HTML, or custom output from a single source.
- Fluent
TableBuilderandReportBuilder<T> - Built-in Console, Markdown, and HTML renderers
- Extend via
ITableRenderer/IReportRenderer
Installation
dotnet add package EchoSpec
Or add a PackageReference and set Version to the current release on NuGet.
Quick example
using EchoSpec;
using EchoSpec.Builders;
var table = new TableBuilder()
.AddHeader("Name")
.AddHeader("Score", ColumnAlignment.Right)
.AddRow("Alice", "95")
.AddRow("Bob", "87");
Console.WriteLine(table.Build(ReportFormat.Console));
File.WriteAllText("results.md", table.Build(ReportFormat.Markdown));
File.WriteAllText("results-table.html", table.Build(ReportFormat.Html)); // <table> fragment
Name Score
─────────────
Alice 95
Bob 87
Reports over typed data:
var builder = new ReportBuilder<TestResult>()
.WithTitle("Test Results")
.AddTable((table, data) =>
{
table.AddHeader("Test")
.AddHeader("Status", ColumnAlignment.Center);
foreach (var row in data)
table.AddRow(row.Name, row.Passed ? "✓" : "✗");
})
.AddSection(data => $"Total: {data.Count()} tests");
var output = builder.Generate(results, ReportFormat.All);
output.WriteToConsole();
output.SaveMarkdown("results.md");
output.SaveHtml("results.html"); // full HTML document
Gotchas
| Topic | Detail |
|---|---|
| Table HTML | Build(ReportFormat.Html) / BuildWith(new HtmlRenderer()) → <table> fragment |
| Report HTML | Generate(ReportFormat.Html) / GenerateWith(..., new HtmlRenderer()) → full document |
TableBuilder.Build |
Single formats only (Console, Markdown, Html). All throws — use BuildWith |
| Console + Markdown only | GenerateWith / BuildWith with those two renderers (no Both enum) |
BuildWith / GenerateWith |
One renderer → string; params → IReadOnlyDictionary<string, string> keyed by Name |
Duplicate Name |
Throws — renderer names must be unique |
| Row widths | Default pad/truncate to header count; set StrictRowWidths = true to throw |
Docs
- QUICKSTART.md — tutorial, API notes, custom renderers
- examples/ — additional samples
- CHANGELOG.md
License
MIT — see LICENSE.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.2 | 58 | 10/28/2026 |
| 1.0.2-beta.10 | 50 | 10/29/2026 |
| 1.0.2-beta.8 | 45 | 10/28/2026 |
| 1.0.1 | 385 | 11/11/2025 |
| 1.0.1-beta.7 | 50 | 10/28/2026 |
| 1.0.1-beta.6 | 64 | 10/24/2026 |
| 1.0.1-beta.4 | 301 | 11/11/2025 |
| 1.0.0 | 348 | 11/11/2025 |
| 1.0.0-beta.3 | 296 | 11/11/2025 |
| 1.0.0-beta.1 | 296 | 11/11/2025 |
2.0: typed BuildWith/GenerateWith, first-class HTML, ReportFormat.All (Both removed), Prepare-once sections, StrictRowWidths, markdown escaping. Breaking: no object returns; Build(All) throws; empty tables render headers; net10.0 only.