Back to Explore

broofa/mime

GitHub
2 updates · last 90 daysOpen source

Last release:

“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 now, with upstream activity and two updates in October 2026 after a roughly year-long gap.
  • Cadence appears irregular: earlier updates were several months apart, followed by this recent burst.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v4.1.2

    mime v4.1.2 fixes getAllExtensions() so callers receive an independent Set rather than a mutable view of internal mappings. The code also adds a manual workflow option that can trigger the npm publishing steps without Release Please creating a release.

  • v4.1.1

    v4.1.1 primarily fixes MIME type lookups by normalizing content-type inputs passed to getAllExtensions. The library behavior change is implemented in src/Mime.ts and backed by a new unit test. Most other diffs are repository and toolchain changes (CI, release workflow, dev dependency bumps).

  • 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.

    BreakingFeatures
  • v4.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.