The input string to slugify.
Optionaloptions: SlugifyOptions = {}Options to customize the slugification process.
The slugified version of the input string.
// With lowercase and custom replacement
slugifyString("Hello World! How are you?", { lowercase: true, replacement: "-" })
// Returns "hello-world-how-are-you"
// Remove accents and special characters
slugifyString("Café Münchën", { lowercase: true })
// Returns "cafe-munchen"
// Custom replacement character
slugifyString("TypeScript is Great", { replacement: "_", lowercase: true })
// Returns "typescript_is_great"
Converts a string into a URL-friendly slug by removing accents, replacing spaces and special characters, and optionally converting to lowercase. Perfect for generating SEO-friendly URLs, filenames, and identifiers.