IoRecipes.SlugGenerator 1.0.4

Generate url and human friendly string from text. Use for url slugs like example.com/article/the-quick-fox

Install-Package IoRecipes.SlugGenerator -Version 1.0.4
dotnet add package IoRecipes.SlugGenerator --version 1.0.4
<PackageReference Include="IoRecipes.SlugGenerator" Version="1.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add IoRecipes.SlugGenerator --version 1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Generating URL and Human-Friendly Strings


code examples
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

Generating URL and Human-Friendly Strings


code examples
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

Release Notes

Added toString override

Dependencies

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 History

Version Downloads Last updated
1.0.4 107 5/14/2020