JJ.Framework.Text.Core 5.2.7438

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

JJ.Framework.Text.Core

Addition to JJ.Framework.Text.Legacy for some special case methods that:

  • Prettify logs and console output.
  • Deal with blank lines, punctuation and accents.
  • Overloads of basic methods like Trim and Replace.

Prettify

These are opinionated, but made some logs pretty:

  • PrettyDuration
  • PrettyTimeSpan
  • PrettyTime
  • PrettyByteCount
  • WithShortGuids

PrettyDuration / PrettyTimeSpan examples:

  • 2.63 d | 2.35 h | 1.50 min | 1.23 s | 3.54 ms | 573.23 μs

PrettyTime example:

  • 14:30:45.123

PrettyByteCount examples:

  • 100 bytes | 5119 bytes | 5 kB | 5120 kB | 5 MB | 5120 MB | 5 GB | 10 GB | 10000 GB

WithShortGuids:

  • GUIDs can really clutter your text: New record {07c75275-0150-4414-bbca-0081b021a0ea}
  • This method takes a text that may contain GUIDs and shortens then e.g., "New record 07c752"
  • It makes it easier to eyeball them, and usually they are an exact match. For human readability, this is good.
  • You can supply the desired shortened length. In the example above length was 6.

Spacing & Punctuation

Trying to avoid excess blank lines or punctuation these were born:

  • StartsWithBlankLine
  • EndsWithBlankLine
  • EndsWithPunctuation
  • RemoveAccents
  • CountLines

Basic Overloads

Overloads that take either char or string for:

  • Trim
  • Replace

Release Notes

2026-07-24 | 5.2/0.260 : Initial
  • Moved string functions here from JJ.Framework.Common.Core
  • Spacing, punctuation and char/string overloads.
  • Prettification for logs and (console) text output.
  • Supports extension and (short) static syntaxes.
  • Full IntelliSense docs, 100% meaningful test coverage.
  • Trimming/native compilation supported.
  • A wide .NET version spread.

💬 Feedback

Found an issue? Let me know.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  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 is compatible.  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 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. 
.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 is compatible. 
.NET Framework 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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on JJ.Framework.Text.Core:

Package Downloads
JJ.Framework.Existence.Core

Has(text), Coalesce(a,b,c), list.Where(FilledIn) to replace garbage like !Equals(x, default(T?)) && !Equals(x, default(T)) and string.IsNullOrWhiteSpace(text). Fallbacks, emptiness checks coded like you mean it.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.2.7438 93 7/26/2026