Marmot-TS
    Preparing search index...

    Function canonicalizeMimeType

    • Canonicalizes a MIME type for use in cryptographic operations (MIP-04).

      Rules (per MIP-04):

      • Convert to lowercase
      • Trim leading/trailing whitespace
      • Strip parameters (everything after the first ;)

      Parameters

      • mimeType: string

        The raw MIME type string

      Returns string

      The canonical MIME type