WayrApp Backend & Ecosystem Documentation - v1.0.0
    Preparing search index...

    Function generateIdFromName

    • Generates a URL-safe, database-compatible ID from a human-readable name.

      Parameters

      • name: string

        The human-readable name to convert to an ID

      • maxLength: number

        Maximum length for the generated ID

      • Optionaloptions: Partial<IdGenerationOptions> = {}

        Additional configuration options

      Returns string

      Generated ID that matches BCP 47 pattern requirements