“mime” is a JavaScript API for MIME type lookups, mapping file paths or extensions to MIME types and vice versa. It is useful for applications that need to determine `Content-Type` values (and extensions) and includes a compact lite variant plus full TypeScript support.
Project status
- Actively maintained: The repo shows an upstream push on 2026-08-05, and recent tagged work exists (e.g., v4.1.0 on 2025-09-12), suggesting it is still maintained, though the provided release history does not show a new tag since then.
- Update cadence (apparent): Tagged updates appear sporadic, with v4.1.0 (2025-09-12) after v4.0.7 (2025-04-03), and earlier v4.0.5/v4.0.6 on 2024-12-17.
AI summary generated
Recent updates
v4.1.0
v4.1.0 updates the generated MIME type maps and enhances the TypeScript typing so consumers can access MIME type information as literal types. It also updates CI to run on a newer Node version and refreshes development tooling and type dependencies.
BreakingFeaturesv4.0.7
Release v4.0.7 updates the mime type database (adding many new extension mappings and expanding some existing ones) and fixes `Mime.getType()` by changing the internal regex handling to use the dotall modifier. The release notes describe the dotall fix, but the diff also includes multiple existing extension-to-mime associations changing, which can affect `getType()` outputs for already-supported extensions.
v4.0.6
v4.0.6 is a small maintenance release focused on removing sourcemaps. The code diff shows this is implemented by changing TypeScript build configuration, plus several ancillary build and test-script adjustments.
v4.0.5
Release v4.0.5 primarily addresses a tooling-related bug fix involving how format type files are handled. No API changes, breaking changes, or security updates are mentioned in these release notes.