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