Function lookup

  • Universal MIME type lookup that works in both Node.js and browser environments

    Parameters

    • filename: string

      The filename or path to get MIME type for

    Returns string

    The MIME type string, or 'application/octet-stream' as fallback