Function slugify

  • Returns a url-safe slug for the given string. Note that by default it will preserve any capitalization in the given string.

    Returns

    A url-safe slug version of the string

    Example

    slugify('Antoine de Saint-Exupéry')
    // 'Antoine-de-Saint-Exupery'

    Parameters

    • s: string

      The string

    Returns string

Generated using TypeDoc