Skip to content

slugify

slugify(string) → string · String

Convert a string to a URL-safe slug (lowercase, hyphens, no special chars).

  • string (required): the string to slugify
utlx
slugify("Hello World! 2026")             // "hello-world-2026"
slugify("Cafe Resume")                   // "cafe-resume"

Released under AGPL-3.0.