mrstebo - StringExtensions.Truncate 1.0.1

Simple library for adding the Truncate method to string.

PM> Install-Package StringExtensions.Truncate -Version 1.0.1 -Source https://www.myget.org/F/mrstebo/api/v3/index.json

Copy to clipboard

> nuget.exe install StringExtensions.Truncate -Version 1.0.1 -Source https://www.myget.org/F/mrstebo/api/v3/index.json

Copy to clipboard

> dotnet add package StringExtensions.Truncate --version 1.0.1 --source https://www.myget.org/F/mrstebo/api/v3/index.json

Copy to clipboard
<PackageReference Include="StringExtensions.Truncate" Version="1.0.1" />
Copy to clipboard
source https://www.myget.org/F/mrstebo/api/v3/index.json

nuget StringExtensions.Truncate  ~> 1.0.1
Copy to clipboard

> choco install StringExtensions.Truncate --version 1.0.1 --source https://www.myget.org/F/mrstebo/api/v2

Copy to clipboard
Import-Module PowerShellGet
Register-PSRepository -Name "mrstebo" -SourceLocation "https://www.myget.org/F/mrstebo/api/v2"
Install-Module -Name "StringExtensions.Truncate" -RequiredVersion "1.0.1" -Repository "mrstebo" 
Copy to clipboard

Build status MyGet Prerelease NuGet Version

StringExtensions.Truncate

Simple library for adding the Truncate method to string.

How to use it

This library adds a simple extension to the string class. Here are some examples:

"Hello".Truncate(10);       // Prints "Hello"
"Hello".Truncate(2);        // Prints "He"
"Hello".Truncate(2, "..."); // Prints "He..."

Owners

Steven Atkinson

Authors

mrstebo

Project URL

https://github.com/mrstebo/StringExtensions.Truncate

License

MIT

Tags

string extensions truncate

Info

61 total downloads
30 downloads for version 1.0.1
Download (4.67 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
1.0.1 4.67 KB Sun, 18 Feb 2018 19:48:25 GMT 30
1.0.0 4.63 KB Thu, 27 Oct 2016 08:17:27 GMT 31