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