Mime
Standard MIME type lookup.
Utilities
getAllExtensions
Added in v4.0.0
Source
Returns every file extension associated with a standard MIME type.
Signature
declare function getAllExtensions(type: string): Option<ReadonlySet<string>>getExtension
Added in v4.0.0
Source
Returns the default file extension associated with a standard MIME type.
Signature
declare function getExtension(type: string): Option<string>Returns the standard MIME type associated with a file name or extension.
Signature
declare function getType(path: string): Option<string>