</>PackageGraphPackageGraph

mime-types

npmv3.0.2

The ultimate javascript content-type utility.

Safe to adopt

Yes — mime-types scores well across adoption, maintenance, weight, supply chain, and licensing. 185.3M downloads per week and 9 known dependents. Last published 293 days ago. 2 releases in the last 2 years.

  • AAdoption: grade A, Excellent.

    185.3M downloads per week and 9 known dependents.

  • BMaintenance: grade B, Good.

    Last published 293 days ago. 2 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Pulls in 1 transitive package, about 243 KB installed.

  • ASupply chain: grade A, Excellent.

    No install scripts, 5 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-types to a project.

1
Direct dependencies

Runtime packages this one declares itself.

1
Total installed

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

243 KB
Install size

Unpacked size of this package plus its entire runtime tree.

1
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

MIT

Every license you inherit by installing mime-types, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
node >=18
Module format
CommonJS only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the mime-types README.

var mime = require('mime-types')

mime-types 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-typesthis page185.3M9MIT9 months ago
mime-db02MIT1 day ago
type-fest337.8M6(MIT OR CC0-1.0)1 day ago
csstype142.8M2MIT1 day ago
mime136.4M6MIT1 day ago
expect-type78.4M8Apache-2.01 day ago

Dependencies

Declared by mime-types v3.0.2. Runtime dependencies are installed with the package; dev dependencies are not.

Runtime (1)

Dev (9)

eslint 8.33.0eslint-config-standard 14.1.1eslint-plugin-import 2.32.0eslint-plugin-markdown 3.0.1eslint-plugin-node 11.1.0eslint-plugin-promise 6.6.0eslint-plugin-standard 4.1.0mocha 10.8.2nyc 15.1.0

Used by

Popular packages that depend on mime-types.

Relationship graph

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

Frequently installed together

Release history

2 releases in the last two years, typically about 62 days apart.

Recent versions of mime-types
VersionPublishedSizeLicense
3.0.2latest9 months ago22 KBMIT
3.0.11 year ago22 KBMIT
3.0.02 years ago22 KBMIT
2.1.354 years ago18 KBMIT
2.1.344 years ago18 KBMIT
2.1.335 years ago18 KBMIT
2.1.325 years ago17 KBMIT
2.1.315 years ago17 KBMIT
2.1.305 years ago17 KBMIT
2.1.295 years ago17 KBMIT
2.1.285 years ago17 KBMIT
2.1.276 years ago16 KBMIT
2.1.266 years ago16 KBMIT
2.1.256 years ago16 KBMIT
2.1.247 years ago15 KBMIT

Overview

mime-types is an npm package that the ultimate javascript content-type utility. It is extremely widely used, with about 185.3M downloads per week and 9 known dependents in the graph. The latest version is 3.0.2, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need the ultimate javascript content-type utility and value a battle-tested, widely-adopted 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

  • Large, well-established user base (185.3M weekly downloads).
  • 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

Funding

Frequently asked questions

Should I use mime-types?

Yes — mime-types scores well across adoption, maintenance, weight, supply chain, and licensing. 185.3M downloads per week and 9 known dependents. Last published 293 days ago. 2 releases in the last 2 years.

How do I install mime-types?

Run `npm install mime-types` to add mime-types to your npm project.

How many dependencies does mime-types have?

mime-types declares 10 direct dependencies and pulls in 1 packages in total once its runtime tree is resolved totalling about 243 KB on disk.

What license is mime-types released under?

mime-types is distributed under the MIT license.

How popular is mime-types?

mime-types has approximately 185,292,782 downloads per week and 9 known dependent packages.

Is mime-types still maintained?

The most recent release of mime-types (v3.0.2) was published 9 months ago.

Does mime-types run install scripts?

No. mime-types does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.