How this tool computes its result
A static lookup table (`MIME_BY_EXTENSION`) hardcodes roughly 29 common extension-to-MIME-type pairs at module scope. A reverse index (`EXTENSIONS_BY_MIME`) is derived once with `reduce`, grouping every extension that shares a MIME string (e.g. both `jpg` and `jpeg` map to `image/jpeg`). The query is lowercased and a single leading "." is stripped, then checked first against the extension table, then against the MIME-type table, and reported "not found" if neither matches.
