• Given a string, it transforms it to a slug (lowercase, hyphenated, no special chars, trimmed...).

    Parameters

    • str: string

      String to slugify.

    Returns string

    The slugified string.