Skip to content
Effect Days 2026 Get your ticket

Mime

Standard MIME type lookup.

3 exports Added in v4.0.0 Source

Utilities

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>

getType

Added in v4.0.0 Source

Returns the standard MIME type associated with a file name or extension.

Signature

declare function getType(path: string): Option<string>