Skip to main content

lookupMimeType

@webda/utils


Function: lookupMimeType()

lookupMimeType(filename): string

Defined in: packages/utils/src/content.ts:193

Infer MIME type from file extension

Parameters​

filename​

string

filename or path

Returns​

string

inferred MIME type or application/octet-stream