Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/zipjs/index.d.ts>getMimeType

JavaScript library to zip and unzip files supporting multi-core compression, compression streams, zip64, split files and encryption.
Latest
function getMimeType
import { getMimeType } from "https://deno.land/x/zipjs@v2.7.53/index.d.ts";

Returns the MIME type corresponding to a filename extension.

Parameters

fileExtension: string

the extension of the filename.

Returns

string

The corresponding MIME type.