@sensimods/utility-lab
    Preparing search index...

    Function slugify

    • Converts a string into a URL-friendly slug. Strips all special characters, replaces spaces with hyphens, and converts everything to lowercase.

      Parameters

      • str: string

        The original string to transform.

      Returns string

      The formatted, URL-safe slug string.

      slugify("Hello World! Welcome to 2026") // "hello-world-welcome-to-2026"