Albatross.Text.CliFormat 10.0.0-133.main

Prefix Reserved
This is a prerelease version of Albatross.Text.CliFormat.
This package has a SemVer 2.0.0 package version: 10.0.0-133.main+ecc3f7e.
dotnet add package Albatross.Text.CliFormat --version 10.0.0-133.main
                    
NuGet\Install-Package Albatross.Text.CliFormat -Version 10.0.0-133.main
                    
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="Albatross.Text.CliFormat" Version="10.0.0-133.main" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Albatross.Text.CliFormat" Version="10.0.0-133.main" />
                    
Directory.Packages.props
<PackageReference Include="Albatross.Text.CliFormat" />
                    
Project file
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 Albatross.Text.CliFormat --version 10.0.0-133.main
                    
#r "nuget: Albatross.Text.CliFormat, 10.0.0-133.main"
                    
#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 Albatross.Text.CliFormat@10.0.0-133.main
                    
#: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=Albatross.Text.CliFormat&version=10.0.0-133.main&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Albatross.Text.CliFormat&version=10.0.0-133.main&prerelease
                    
Install as a Cake Tool

Albatross.Text.CliFormat

A .NET library for formatting data using runtime expressions. Transform collections and objects into tables, CSV, JSON, and more using a simple expression syntax.

Full Documentation

Installation

dotnet add package Albatross.Text.CliFormat

Quick Start

using Albatross.Text.CliFormat;

var people = new[] {
    new { Name = "John", Age = 30 },
    new { Name = "Jane", Age = 25 }
};

// Auto-detect format (prints as table)
Console.Out.CliPrint(people);

// Format expressions
Console.Out.CliPrint(people, "table(value, Name)");      // Table with Name only
Console.Out.CliPrint(people, "csv(value)");              // CSV output
Console.Out.CliPrint(people, "json(value)");             // JSON output
Console.Out.CliPrint(people, "first(value)");            // First item

Operations Reference

Operation Example Description
table table(value, Col1, Col2) Tabular output with optional columns
csv / ccsv csv(value) CSV with/without headers
json json(value) JSON serialization
list list(value, Property) Key-value list format
first / last first(value) First/last element
subset subset(value, 0, 5) Extract range of items
property property(value, 'Name') Access object property
cproperty cproperty(value, Name) Extract property from each element
jsonpointer jsonpointer(value, /name) JSON pointer extraction

Chaining Operations

Operations can be chained - inner operations execute first:

// Table of first 3 items with specific columns
Console.Out.CliPrint(data, "table(subset(value, 0, 3), Name, Age)");

// CSV export of names only
Console.Out.CliPrint(data, "csv(value, FirstName, LastName)");

// JSON of nested property
Console.Out.CliPrint(contact, "json(property(value, 'Address'))");

Key Concepts

  • value is the built-in variable referring to your input data
  • Property names are case-sensitive in property() operations
  • JSON pointer uses camelCase property names (/firstName not /FirstName)
  • Customize table output via TableOptionFactory.Instance.Register()
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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.

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
10.0.0-133.main 49 5/30/2026
9.0.3 599 1/4/2026
9.0.2 73 1/4/2026
9.0.1 103 12/10/2025
9.0.0 97 11/27/2025
8.2.1 121 11/1/2025
8.2.0 113 10/22/2025
8.2.0-87.main 115 10/8/2025