Hiyve Components - v1.0.0
    Preparing search index...

    Function getDisplayName

    • Extract a display name from a user ID.

      Parameters

      • userId: string

        The user ID to parse

      Returns string

      A display-friendly name

      Handles common patterns like emails and underscore-separated IDs.

      getDisplayName('john.doe@example.com'); // "John Doe"
      getDisplayName('john_doe_123'); // "John Doe"
      getDisplayName('johndoe'); // "Johndoe"