MIME Type Utility

JSON →
library 3.0.2 ·javascript
verified May 27, 2026

mime-types is a JavaScript utility library for working with content-types, offering functions to look up MIME types, file extensions, and associated charsets. Currently at stable version `3.0.2`, the package primarily focuses on providing accurate MIME type data sourced from `mime-db`. It differentiates itself from older `mime` modules by explicitly returning `false` for unknown types (rather than a naive fallback), avoiding instance creation (`new Mime()`), and omitting `.define()` functionality. While its core API remains compatible with `mime@1.x`, it's maintained by the `jshttp` organization and generally receives updates driven by new MIME types or minor fixes rather than frequent new features. A key aspect is its `mime-db` dependency; programmatic API changes are considered semver, but updates to the underlying MIME type data itself are not, meaning users needing strict data versioning must manage `mime-db` via package manager overrides.

total hits 38
actors 9 distinct systems
last hit 18h ago human
MetaBot
4
GPTBot
2
Script
1
Amazonbot
1
ByteDance
1
ClaudeBot
1
Search engines
1
Humans
4

top countries 🇨🇦 Canada · 🇺🇸 United States · 🇫🇮 Finland · 🇬🇧 United Kingdom · 🇩🇪 Germany