broofa/mime
Mime types for JavaScript observed · 2026-08-28
Health v2 · maintenance only
71/100
- Activity 96
- Release rhythm 23
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 106
- age_days: 6034
- days_rel: 355
- days_push: 28
- n_releases_24m: 4
Adoption not part of the score
2355 stars · 321 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A dependency-free JavaScript/TypeScript library for MIME type information, mapping file extensions to MIME types and vice versa using mime-db data. It offers a compact API with full and lite builds and built-in TypeScript types.
Use cases
- look up the mime type for a file extension
- get the file extension for a content-type header
- serve correct Content-Type headers in an http server
- map uploaded filenames to mime types
- get all extensions for a mime type like image/jpeg
- use a lightweight mime lookup in a browser bundle
When to choose
- you need fast, dependency-free mime type lookup in Node, Deno, Bun, or the browser
- you want built-in TypeScript types and ESM support
- you need a compact lite build without unofficial x-/vnd-/prs. types
When to avoid
- your runtime lacks ES2020/ESM support (use mime@3 instead)
- you need magic-byte content sniffing rather than extension-based lookup
- you need to call define() on the default mime object
Facets
library · maturity stable
serialization web-development developer-tools files bun browser cross-platform mime-types file-extensions content-type esm typescript nodejs deno
2 sources
- readme: https://github.com/broofa/mime · fetched 2026-08-28 · d34a14cc0acb
- registry_npm: https://registry.npmjs.org/mime · fetched 2026-08-29 · 132bb77f44fc
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| broofa/mime | main | 71 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem