TimeWarp.Builder 1.0.0-beta.1

Prefix Reserved
This is a prerelease version of TimeWarp.Builder.
dotnet add package TimeWarp.Builder --version 1.0.0-beta.1
                    
NuGet\Install-Package TimeWarp.Builder -Version 1.0.0-beta.1
                    
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="TimeWarp.Builder" Version="1.0.0-beta.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TimeWarp.Builder" Version="1.0.0-beta.1" />
                    
Directory.Packages.props
<PackageReference Include="TimeWarp.Builder" />
                    
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 TimeWarp.Builder --version 1.0.0-beta.1
                    
#r "nuget: TimeWarp.Builder, 1.0.0-beta.1"
                    
#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 TimeWarp.Builder@1.0.0-beta.1
                    
#: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=TimeWarp.Builder&version=1.0.0-beta.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=TimeWarp.Builder&version=1.0.0-beta.1&prerelease
                    
Install as a Cake Tool

TimeWarp.Builder

Fluent builder interfaces and Kotlin-inspired scope extensions for .NET.

Interfaces

IBuilder<T>

Interface for standalone builders that create objects via Build().

public class MyWidgetBuilder : IBuilder<Widget>
{
    public Widget Build() => new Widget(_options);
}

// Usage
Widget widget = new MyWidgetBuilder()
    .WithColor("blue")
    .WithSize(10)
    .Build();

INestedBuilder<TParent>

Interface for nested builders that return to a parent context via Done().

// Nested builder returns to parent after building
app.Map(route => route
    .WithLiteral("deploy")
    .WithParameter("env")
    .Done())  // Returns to parent builder
    .WithHandler(handler);

Scope Extensions

Kotlin-inspired extension methods for fluent object manipulation.

Also

Executes an action on the object and returns the original object. Useful for side effects during method chaining.

var builder = new AppBuilder()
    .Also(b => Console.WriteLine("Building app..."))
    .Configure(options);

Apply

Configures the object and returns the original object. Semantically similar to Also but with clearer intent for configuration.

app.Map("status", handler)
   .Apply(r => r.AsQuery());

Let

Transforms the object to a different type.

int length = "hello".Let(s => s.Length);  // 5

Run

Executes an action on the object with no return value. Terminal operation in a method chain.

app.Build().Run(a => a.RunAsync(args));
Product 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.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on TimeWarp.Builder:

Package Downloads
TimeWarp.Nuru.Core

Core library for TimeWarp.Nuru CLI framework - slim foundation with CreateSlimBuilder() for minimal CLIs

TimeWarp.Terminal

Terminal abstractions and widgets for console applications - IConsole, ITerminal, panels, tables, rules, and ANSI color support

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0-beta.1 227 12/22/2025