Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    Function slugify

    • Transform any string into an url-viable slug string

      Parameters

      • Optionaloptions: { lowercase?: boolean; replacement?: string; strict?: boolean } = {}

        Optional arguments which customize how the slugify operation is performed

        • Optionallowercase?: boolean

          Lowercase the string.

        • Optionalreplacement?: string

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

        • Optionalstrict?: boolean

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

      Returns string

      The slugified input string