mime-detect
Version:
Detect mime type and encoding (aka Content-Type) from buffer, file content and filename.
29 lines (28 loc) • 811 B
TypeScript
export declare let mime_to_ext: {
'audio/mp4': string;
'audio/mpeg': string;
'audio/vnd.wave': string;
'audio/ogg': string;
'audio/midi': string;
'video/vnd.avi': string;
'video/quicktime': string;
'video/x-matroska': string;
'video/3gpp': string;
'video/mpeg': string;
'video/mp4': string;
'application/json': string;
'application/xhtml+xml': string;
'application/vnd.ms-powerpoint': string;
'application/vnd.ms-excel': string;
'application/octet-stream': string;
'image/jpeg': string;
'image/bmp': string;
'text/plain': string;
'text/html': string;
'text/markdown': string;
'text/javascript': string;
'text/coffeescript': string;
'text/calendar': string;
'text/x-asm': string;
'text/x-pascal': string;
};