Documentation
    Preparing search index...

    Function parseCommonProfile

    • Normalize kind-0 content into CommonProfileData (display_name becomes displayName; every other key is preserved).

      Parameters

      • content: string

        Kind-0 JSON content.

      Returns CommonProfileData | null

      Profile data, or null when the content is not a JSON object.

      parseCommonProfile('{"display_name":"Alice","lud16":"alice@pay.example"}')?.displayName === 'Alice';