TLio.Extensions.Text
1.5.0-preview.5
See the version list below for details.
dotnet add package TLio.Extensions.Text --version 1.5.0-preview.5
NuGet\Install-Package TLio.Extensions.Text -Version 1.5.0-preview.5
<PackageReference Include="TLio.Extensions.Text" Version="1.5.0-preview.5" />
<PackageVersion Include="TLio.Extensions.Text" Version="1.5.0-preview.5" />
<PackageReference Include="TLio.Extensions.Text" />
paket add TLio.Extensions.Text --version 1.5.0-preview.5
#r "nuget: TLio.Extensions.Text, 1.5.0-preview.5"
#:package TLio.Extensions.Text@1.5.0-preview.5
#addin nuget:?package=TLio.Extensions.Text&version=1.5.0-preview.5&prerelease
#tool nuget:?package=TLio.Extensions.Text&version=1.5.0-preview.5&prerelease
TLio.Extensions.Text
Text and string functions for TLio. Format-agnostic — works
against JSON, XML, and YAML through IExecutionContext<TNode>.
dotnet add package TLio.Extensions.Text
Quick start
using Newtonsoft.Json.Linq;
using TLio.Client;
using TLio.Extensions.Text;
using TLio.Json;
var data = JToken.Parse("""{ "first": "Ada", "last": "Lovelace" }""");
var script = """
[
{ "command": "add", "path": "$.fullName", "value": "=concat($.first, ' ', $.last)" }
]
""";
var options = ParseOptions<JToken>.CreateDefault();
options.WithText();
var engine = new ScriptEngine<JToken>(options.CommandsProvider, options.FunctionsProvider);
var result = engine.Execute(script, data, JsonExecutionContext.CreateDefault());
// result.Data["fullName"] → "Ada Lovelace"
options.WithText() is the one call that registers the whole pack and returns options, so it
chains with the other packs (.WithMath().WithText()). options.FunctionsProvider.RegisterText<TNode>()
does the same and still works. RegisterTextPack<TNode>(), the JLio-compatible alias, is
[Obsolete] and is removed in the next major version.
Functions
concat · length · substring · toupper · tolower · trim · trimstart · trimend ·
startswith · endswith · contains · replace · split · join · indexof · format ·
parse · padleft · padright · newguid · isempty · toString
camelCase aliases are also registered: toLower, toUpper, trimStart, trimEnd.
License
MIT — see the repository.
| Product | Versions 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 is compatible. 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 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. |
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.6.0-preview.1 | 69 | 11/3/2026 |
| 1.5.2 | 85 | 11/16/2026 |
| 1.5.1 | 149 | 11/2/2026 |
| 1.5.0 | 109 | 11/2/2026 |
| 1.5.0-preview.5 | 61 | 11/2/2026 |
| 1.5.0-preview.3 | 77 | 10/23/2026 |
| 1.5.0-preview.2 | 63 | 10/23/2026 |
| 1.5.0-preview.1 | 66 | 10/22/2026 |
| 1.4.1 | 146 | 10/22/2026 |
| 1.4.0 | 123 | 10/19/2026 |
| 1.3.0 | 104 | 10/19/2026 |
| 1.3.0-preview.9 | 65 | 10/19/2026 |
| 1.3.0-preview.8 | 51 | 10/19/2026 |
| 1.3.0-preview.7 | 54 | 10/19/2026 |
| 1.3.0-preview.6 | 54 | 10/19/2026 |
| 1.3.0-preview.5 | 60 | 10/19/2026 |
| 1.3.0-preview.4 | 63 | 10/19/2026 |
| 1.3.0-preview.3 | 69 | 10/18/2026 |
| 1.3.0-preview.2 | 66 | 10/18/2026 |
| 1.3.0-preview.1 | 68 | 10/12/2026 |