MicroElements.Text.Sources 1.0.0

Prefix Reserved
dotnet add package MicroElements.Text.Sources --version 1.0.0                
NuGet\Install-Package MicroElements.Text.Sources -Version 1.0.0                
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="MicroElements.Text.Sources" Version="1.0.0">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MicroElements.Text.Sources --version 1.0.0                
#r "nuget: MicroElements.Text.Sources, 1.0.0"                
#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 MicroElements.Text.Sources as a Cake Addin
#addin nuget:?package=MicroElements.Text.Sources&version=1.0.0

// Install MicroElements.Text.Sources as a Cake Tool
#tool nuget:?package=MicroElements.Text.Sources&version=1.0.0                

MicroElements.Text.Sources

Summary

MicroElements source code only package. Provides extensions for working with text: formatting, hashing, encoding. Commonly Used Extensions: FormatValue, FormatAsTuple, EncodeBase58.

Extensions

FormatValue

Provides format function for most used types.

Rules:

  • formats numeric types with invariant culture
  • formats date types in ISO formats
  • recursively formats collections with FormatAsTuple as [value1, value2, ... valueN]
  • formats KeyValuePair<string, object> and ValueTuple<string, object> as (key: value)
  • for null returns provided placeholder

FormatAsTuple

Formats enumeration of values as tuple: (value1, value2, ...).

Base58

Base58 encoding provides fast encoding for small amount of data for example hashes.

Benefits over Base64 encoding:

  • Human readable because excludes similar characters 0OIl that looks the same in some fonts and could be used to create visually identical looking data.
  • Does not have line-breaks and special symbols so can be typed easy.
  • Double-clicking selects the whole string as one word if it's all alphanumeric.
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 netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen 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.

This package has no dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on MicroElements.Text.Sources:

Package Downloads
MicroElements.Reflection.Sources

MicroElements source only package: Reflection. Classes: TypeExtensions, TypeCheck, ObjectExtensions, Expressions, CodeCompiler, FriendlyName.

MicroElements.Shared.Sources

MicroElements source packages metapackage.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 2,175 1/9/2022

# Changelog

## [1.0.0] - 2022-01-09
- Added: StringFormatter moved from MicroElements.Formatting.Sources
- Added: Base58 extensions: EncodeBase58, Md5HashInBase58 (migrated from MicroElements.Metadata)
- Added: Hashing extensions: Md5HashBytes, AsHexText, Md5HashAsHexText

Full release notes can be found at: https://github.com/micro-elements/MicroElements.Shared/blob/master/src/MicroElements.Text.Sources/CHANGELOG.md