The input string to slugify.
Optionaloptions: SlugifyOptions = {}Options to customize the slugification process.
The slugified version of the input string.
// Basic usage (strict mode, lowercase by default)
slugify("Hello World!")
// Returns "hello-world"
// With custom replacement
slugify("Hello World! How are you?", { replacement: "-" })
// Returns "hello-world-how-are-you"
// Custom replacement character
slugify("TypeScript is Great", { replacement: "_" })
// 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.