mime-db
npmv1.54.0Media Type Database
Adopt with care
mime-db is usable, with caveats. Last published 540 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- CMaintenance: grade C, Fair — worth a look.
Last published 540 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 220 KB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 3 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding mime-db to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- node >= 0.6
- Module format
- CommonJS only
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the mime-db README.
var db = require('mime-db')
// grab data on .js files
var data = db['application/javascript']mime-db vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| mime-dbthis page | 0 | 2 | MIT | 1 year ago |
| mime-types | 185.3M | 9 | MIT | 1 day ago |
| type-detect | 44.3M | 1 | MIT | 1 day ago |
| mongoose | 6.1M | 0 | MIT | 1 day ago |
| knex | 0 | 1 | MIT | 1 day ago |
| postgres | 0 | 1 | Unlicense | 1 day ago |
Dependencies
Declared by mime-db v1.54.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (13)
Used by
Popular packages that depend on mime-db.
The ultimate javascript content-type utility.
Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
Relationship graph
Dependencies (left) and dependents (right) of mime-db.
Frequently installed together
An AST-based pattern checker for JavaScript.
ECMAScript parser
Share target browsers between different front-end tools, like Autoprefixer, Stylelint and babel-env-preset
React is a JavaScript library for building user interfaces.
TypeScript definitions for estree
Lodash modular utilities.
React package for working with the DOM.
Prettier is an opinionated code formatter
Node's event emitter for all engines.
Delightful JavaScript Testing.
ECMAScript scope analyzer for ESLint
A library to create a trace of your node app per Google's Trace Event format.
Release history
1 release in the last two years, typically about 60 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 1.54.0latest | 1 year ago | 220 KB | MIT |
| 1.53.0 | 2 years ago | 214 KB | MIT |
| 1.52.0 | 4 years ago | 201 KB | MIT |
| 1.51.0 | 4 years ago | 199 KB | MIT |
| 1.50.0 | 5 years ago | 199 KB | MIT |
| 1.49.0 | 5 years ago | 198 KB | MIT |
| 1.48.0 | 5 years ago | 197 KB | MIT |
| 1.47.0 | 5 years ago | 196 KB | MIT |
| 1.46.0 | 5 years ago | 195 KB | MIT |
| 1.45.0 | 6 years ago | 194 KB | MIT |
| 1.44.0 | 6 years ago | 192 KB | MIT |
| 1.43.0 | 6 years ago | 189 KB | MIT |
| 1.42.0 | 7 years ago | 187 KB | MIT |
| 1.41.0 | 7 years ago | 186 KB | MIT |
| 1.40.0 | 7 years ago | 184 KB | MIT |
Overview
mime-db is an npm package that media Type Database. It has 2 known dependents in the graph. The latest version is 1.54.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need media Type Database and value a focused solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Clear open-source license (MIT).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use mime-db?
mime-db is usable, with caveats. Last published 540 days ago.
How do I install mime-db?
Run `npm install mime-db` to add mime-db to your npm project.
What license is mime-db released under?
mime-db is distributed under the MIT license.
How popular is mime-db?
npm does not publish download counts. Within PackageGraph's crawl, 2 known packages depend on mime-db.
Is mime-db still maintained?
The most recent release of mime-db (v1.54.0) was published 1 year ago.
Does mime-db run install scripts?
No. mime-db does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.