Const
Gets the file extension from a filename or file path
The filename or path
The file extension including the dot (e.g., '.jpg')
Universal MIME type lookup that works in both Node.js and browser environments
The filename or path to get MIME type for
The MIME type string, or 'application/octet-stream' as fallback
Gets MIME type from a File object (browser environment only)
The File object
The MIME type from the file object, or lookup from filename as fallback
Universal MIME type utility object with methods similar to mime-types package