IoRecipes.SlugGenerator
1.0.4
dotnet add package IoRecipes.SlugGenerator --version 1.0.4
NuGet\Install-Package IoRecipes.SlugGenerator -Version 1.0.4
<PackageReference Include="IoRecipes.SlugGenerator" Version="1.0.4" />
paket add IoRecipes.SlugGenerator --version 1.0.4
#r "nuget: IoRecipes.SlugGenerator, 1.0.4"
// Install IoRecipes.SlugGenerator as a Cake Addin
#addin nuget:?package=IoRecipes.SlugGenerator&version=1.0.4
// Install IoRecipes.SlugGenerator as a Cake Tool
#tool nuget:?package=IoRecipes.SlugGenerator&version=1.0.4
Generating URL and Human-Friendly Strings
Documentation on iorecipes.com
Useful for generating unique slugs to use in a URL.
Go from, example.com/article/12
to example.com/article/fast-fox
Examples
Slug.GenerateSlug()
The Quick Fox! - "the-quick-fox"
@Fox&Friends - "foxfriends"
Filter out Existing
Slug.SetExistingSlugs(...)
Use this method to filter out existing slugs so that you don't have duplicates. So you can have:
example.com/article/fast-fox
example.com/article/fast-fox-1
example.com/article/fast-fox-2
etc.
FULL DOCUMENTATION
Available on iorecipes.com
Product | Versions |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows |
.NET Core | netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1 |
.NET Standard | netstandard2.0 netstandard2.1 |
.NET Framework | net461 net462 net463 net47 net471 net472 net48 net481 |
MonoAndroid | monoandroid |
MonoMac | monomac |
MonoTouch | monotouch |
Tizen | tizen40 tizen60 |
Xamarin.iOS | xamarinios |
Xamarin.Mac | xamarinmac |
Xamarin.TVOS | xamarintvos |
Xamarin.WatchOS | xamarinwatchos |
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.4 | 334 | 5/14/2020 |
Added toString override