</>PackageGraphPackageGraph

media-typer

npmv2.0.0

Simple RFC 6838 media type parser and formatter

Safe to adopt

Yes — media-typer scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 105 days ago. 2 releases in the last 2 years.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • BMaintenance: grade B, Good.

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

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 12 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 media-typer 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.

12 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 >=18
Module format
ESM only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the media-typer README.

import * as typer from "media-typer";

Dependencies

Declared by media-typer v2.0.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (6)

@borderless/ts-scripts ^0.15.0@size-limit/preset-small-lib ^12.0.0@vitest/coverage-v8 ^3.2.4size-limit ^12.0.0typescript ^5.6.2vitest ^3.2.4

Used by

Popular packages that depend on media-typer.

Relationship graph

Dependencies (left) and dependents (right) of media-typer.

type-ismime-dbmedia-typer
media-typer dependencies dependents

Frequently installed together

Release history

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

Recent versions of media-typer
VersionPublishedSizeLicense
1.1.11 month ago9.1 KBMIT
2.0.0latest3 months ago12 KBMIT
1.1.07 years ago9.0 KBMIT
1.0.27 years ago8.4 KBMIT
1.0.18 years ago8.2 KBMIT
1.0.08 years ago8.1 KBMIT
0.3.012 years agoMIT
0.2.012 years agoMIT
0.1.012 years agoMIT
0.0.012 years agoMIT

Overview

media-typer is an npm package that simple RFC 6838 media type parser and formatter. It has 2 known dependents in the graph. The latest version is 2.0.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need simple RFC 6838 media type parser and formatter 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

Funding

Frequently asked questions

Should I use media-typer?

Yes — media-typer scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 105 days ago. 2 releases in the last 2 years.

How do I install media-typer?

Run `npm install media-typer` to add media-typer to your npm project.

What license is media-typer released under?

media-typer is distributed under the MIT license.

How popular is media-typer?

npm does not publish download counts. Within PackageGraph's crawl, 2 known packages depend on media-typer.

Is media-typer still maintained?

The most recent release of media-typer (v2.0.0) was published 3 months ago.

Does media-typer run install scripts?

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