import { getMIME } from "https://deno.land/x/ayonli_jsext@v0.9.72/esm/filetype.js";
Returns the corresponding MIME type for the given type, where the type is a file extension or a UTI (Uniform Type Identifier) name.
Examples
Example 1
Example 1
import { getMIME } from "@ayonli/jsext/filetype";
console.log(getMIME(".png")); // image/png
console.log(getMIME("public.png")); // image/png