/Slugify

Convert strings into URL slugs.

Primary LanguageSwiftApache License 2.0Apache-2.0

Slugify Build Status

Convert strings into URL slugs.

let string = "!Hello~`!@#$%^&*()_+={}[]|\\;:'\"<>,.?/World! こんにちは! สวัสดี! مرحبا! 您好!"
let slug = string.slugify() // hello-world-kon-nichiha-swasdi-mrhba-nin-hao