</>PackageGraphPackageGraph

mime-db

npmv1.54.0

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

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

220 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

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.

PackageWeekly downloadsDependentsLicenseLast release
mime-dbthis page02MIT1 year ago
mime-types185.3M9MIT1 day ago
type-detect44.3M1MIT1 day ago
mongoose6.1M0MIT1 day ago
knex01MIT1 day ago
postgres01Unlicense1 day ago

Dependencies

Declared by mime-db v1.54.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (13)

csv-parse 4.16.3eslint 8.32.0eslint-config-standard 15.0.1eslint-plugin-import 2.27.5eslint-plugin-markdown 3.0.0eslint-plugin-node 11.1.0eslint-plugin-promise 6.1.1eslint-plugin-standard 4.1.0media-typer 1.1.0mocha 10.2.0nyc 15.1.0stream-to-array 2.3.0undici 7.1.0

Used by

Popular packages that depend on mime-db.

Relationship graph

Dependencies (left) and dependents (right) of mime-db.

mime-typeswebpackmime-db
mime-db dependencies dependents

Frequently installed together

Release history

1 release in the last two years, typically about 60 days apart.

Recent versions of mime-db
VersionPublishedSizeLicense
1.54.0latest1 year ago220 KBMIT
1.53.02 years ago214 KBMIT
1.52.04 years ago201 KBMIT
1.51.04 years ago199 KBMIT
1.50.05 years ago199 KBMIT
1.49.05 years ago198 KBMIT
1.48.05 years ago197 KBMIT
1.47.05 years ago196 KBMIT
1.46.05 years ago195 KBMIT
1.45.06 years ago194 KBMIT
1.44.06 years ago192 KBMIT
1.43.06 years ago189 KBMIT
1.42.07 years ago187 KBMIT
1.41.07 years ago186 KBMIT
1.40.07 years ago184 KBMIT

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

Keywords

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.