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
> nuget.exe install StringExtensions.Truncate -Version 1.0.1 -Source https://www.myget.org/F/mrstebo/api/v3/index.json
> dotnet add package StringExtensions.Truncate --version 1.0.1 --source https://www.myget.org/F/mrstebo/api/v3/index.json
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
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
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..."
OwnersSteven Atkinson |
Authorsmrstebo |
Project URLhttps://github.com/mrstebo/StringExtensions.Truncate |
LicenseMIT |
Tagsstring extensions truncate |
Info61 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 |
|