UNPKG

file-type-mime

Version:

Utility to parse mime type from a file content

16 lines (13 loc) 299 B
type Options = { extra?: boolean; hint?: { ext?: string; mime?: string; }; }; type Result = { ext: string; mime: string; }; declare function parse(buffer: ArrayBuffer, { extra, hint }?: Options): Result | undefined; export { type Options, type Result, parse };