• Transform any string into an url-viable slug string

    Parameters

    • Optional options: {
          replacement: string;
          strict: boolean;
          lowercase: boolean;
      } = {}

      Optional arguments which customize how the slugify operation is performed

      • replacement: string

        The replacement character to separate terms, default is '-'

      • strict: boolean

        Replace all non-alphanumeric characters, or allow them? Default false

      • lowercase: boolean

        Lowercase the string.

    Returns string

    The slugified input string