</>PackageGraphPackageGraph

mrmime

npmv2.0.1TypeScript

A tiny (2.8kB) and fast utility for getting a MIME type from an extension or filename

Adopt with care

mrmime is usable, with caveats. Last published 569 days ago.

  • AAdoption: grade A, Excellent.

    37.2M downloads per week and 3 known dependents.

  • CMaintenance: grade C, Fair — worth a look.

    Last published 569 days ago.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 32 KB installed.

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

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

32 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 >=10
Module format
ESM + CommonJS
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the mrmime README.

import { lookup, mimes } from 'mrmime';

// Get a MIME type
// ---
lookup('txt'); //=> "text/plain"
lookup('.txt'); //=> "text/plain"
lookup('a.txt'); //=> "text/plain"

// Unknown extension
// ---
lookup('.xyz'); //=> undefined

// Add extension to dictionary
// ---
Example truncated — see the full README.

mrmime vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
mrmimethis page37.2M3MIT1 year ago
mime136.4M6MIT1 day ago
mime-types185.3M9MIT1 day ago
mime-db02MIT1 day ago
rechoir01MIT1 day ago
make-error01ISC1 day ago

Dependencies

Declared by mrmime v2.0.1. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (2)

tsm 2.3.0uvu 0.5.2

Used by

Popular packages that depend on mrmime.

Relationship graph

Dependencies (left) and dependents (right) of mrmime.

vitesirvdevframemrmime
mrmime dependencies dependents

Frequently installed together

Release history

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

Recent versions of mrmime
VersionPublishedSizeLicense
2.0.1latest1 year ago32 KBMIT
2.0.02 years ago32 KBMIT
1.0.14 years ago30 KBMIT
1.0.04 years ago30 KBMIT
0.1.212 years agoMIT
0.1.112 years agoMIT
0.1.012 years agoMIT

Overview

mrmime is an npm package that a tiny (2.8kB) and fast utility for getting a MIME type from an extension or filename. It is extremely widely used, with about 37.2M downloads per week and 3 known dependents in the graph. The latest version is 2.0.1, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need a tiny (2.8kB) and fast utility for getting a MIME type from an extension or filename and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (37.2M weekly downloads).
  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).
  • Lean dependency tree (2 direct dependencies).

Cons

  • No significant drawbacks detected from available metadata.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use mrmime?

mrmime is usable, with caveats. Last published 569 days ago.

How do I install mrmime?

Run `npm install mrmime` to add mrmime to your npm project.

What license is mrmime released under?

mrmime is distributed under the MIT license.

How popular is mrmime?

mrmime has approximately 37,208,655 downloads per week and 3 known dependent packages.

Is mrmime still maintained?

The most recent release of mrmime (v2.0.1) was published 1 year ago.

Does mrmime run install scripts?

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