项目作者: DominikGorecki

项目描述 :
A package for generating slug.
高级语言: C#
项目地址: git://github.com/DominikGorecki/IoRecipes.SlugGenerator.git
创建时间: 2020-05-14T01:37:04Z
项目社区:https://github.com/DominikGorecki/IoRecipes.SlugGenerator

开源协议:

下载


SLUG GENERATOR

code examples

Get best documetation on here, on iorecipes.com.

Generating URL and Human Friendly Strings

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(IEnumerable<string>)

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