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

x/zipjs/index.js>getMimeType

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

Returns the MIME type corresponding to a filename extension.

Parameters

fileExtension: string

the extension of the filename.

Returns

string

The corresponding MIME type.