StringTokenFormatter 2.0.8

There is a newer version of this package available.
See the version list below for details.

Requires NuGet 2.12 or higher.

dotnet add package StringTokenFormatter --version 2.0.8
NuGet\Install-Package StringTokenFormatter -Version 2.0.8
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="StringTokenFormatter" Version="2.0.8" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add StringTokenFormatter --version 2.0.8
#r "nuget: StringTokenFormatter, 2.0.8"
#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.
// Install StringTokenFormatter as a Cake Addin
#addin nuget:?package=StringTokenFormatter&version=2.0.8

// Install StringTokenFormatter as a Cake Tool
#tool nuget:?package=StringTokenFormatter&version=2.0.8

Provides string extension methods for replacing tokens within strings (using the format '{name}') with their specified lookup value.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.0

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on StringTokenFormatter:

Package Downloads
SimairaDigital.DevOps.Pipeline.NukeTool

NUKE build system always require pipeline build system to intiate this.

FowlFever.Conjugal

Structs and annotations for producing nice word conjugations and other linguistic metadata, such as abbreviations, units of measure, and terms of venery.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
9.0.1 1,120 3/19/2024
9.0.0 590 3/10/2024
8.0.0 25,142 1/15/2024
7.3.0 3,708 12/12/2023
7.2.0 2,779 12/5/2023
7.1.0 2,506 11/13/2023
7.0.0 1,095 10/29/2023
6.1.0 31,138 6/13/2023
4.1.0 616,976 12/2/2020
4.0.0 226,477 7/19/2019
3.1.0 579,317 4/1/2019
3.0.0 1,893 3/5/2019
2.0.8 3,751 1/22/2019
2.0.7 10,527 11/2/2018
2.0.6 10,414 12/22/2017
2.0.5 1,534 12/22/2017
2.0.4 1,496 12/22/2017
2.0.3 5,807 12/4/2017
2.0.2 5,403 12/4/2017
2.0.1 5,352 12/4/2017
2.0.0 5,237 12/4/2017
1.7.0 1,385 10/31/2017
1.6.1 3,862 6/9/2017
1.6.0 3,433 12/3/2015
1.5.1 1,566 7/1/2015
1.5.0 1,491 7/1/2015
1.4.0 1,428 6/18/2015
1.3.0 1,651 1/8/2015
1.2.0 1,817 1/7/2015

2.0.8
- Massively improved performance for long input by reworked token matching
- Breaking change: Removed concept of escape end markers (only downside is that you can no longer use an escape marker as part of a token name)
2.0.7
- Fixed issue when end token marker and escaped end token marker are the same.
2.0.6
- Changed DefaultTokenMatcher.MatchedTokens to return just the token name
2.0.5
- DefaultTokenMatcher class now includes a method that returns the token found within a string
2.0.4
- Assembly is now signed
2.0.3
- Relative URLs are now supported
2.0.2
- Reordered constructor parameters of TokenReplacer to match workflow
2.0.1
- Added Uri extension methods (FormatToken)
- MapTokens method is now public to allow for further customisation
2.0.0
- Reworked pipeline so that each step (match, value lookup, value format) is configurable via an interface
- Removed FormatPreview as we are no longer building a complete input for string.format
- IFormatProvider is now passed via constructor
- String.FormatToken interface renames the same so compatibility should be retained
- Added mappings for Func<string> and Func<object> whereby the token isn't passed as an input
- Mapping should now be consistent between all the different format methods
1.7.0
- Added .net Standard 2.0 implementation
1.6.1
- Fixed issue whereby orphan starting tokens were stopping actual tokens from being matched
1.6.0
- Alternative token markers can now used     
1.5.1
- Bug fix on empty string when calling Format method
1.5.0
- Added support for Lazy&lt;string, object&gt;, Lazy&lt;string, string&gt;, Func&lt;string, string&gt;
- Added format preview (to show the string.Format pattern rather than the result)
1.4.0
- Added support for Func&lt;string, object&gt; as token value to support on-demand lookups
1.3.0
- Added specific extension methods for IDictionary&lt;string, string&gt;
1.2.0
- Added support for alignment padding
1.1.0
- Updated to use string.format internally so that non-string value types can be formatted (e.g. {token:D4})
- Allowed format provider to be specified
- Provided overload to allow for anonymous objects to be used
1.0.0
- Initial version.