MIME class.

Hierarchy

  • Mime

Constructors

Properties

Methods

Constructors

Properties

_reverseCustom: undefined | Record<string, string> = undefined
custom: Record<string, string> = ...

Custom MIME types.

Methods

  • Detect file extensions from Accept header value.

    Parameters

    • accepts: string

    Returns string[]

  • Get MIME type for file extension.

    Parameters

    • ext: string

    Returns null | string

Generated using TypeDoc