media-typer
npmv2.0.0Simple 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.
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 >=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)
Used by
Popular packages that depend on media-typer.
Relationship graph
Dependencies (left) and dependents (right) of media-typer.
Frequently installed together
An AST-based pattern checker for JavaScript.
Create and parse HTTP Content-Type header
The ultimate javascript content-type utility.
An HTTP/1.1 client, written from scratch for Node.js
Release history
2 releases in the last two years, typically about 57 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 1.1.1 | 1 month ago | 9.1 KB | MIT |
| 2.0.0latest | 3 months ago | 12 KB | MIT |
| 1.1.0 | 7 years ago | 9.0 KB | MIT |
| 1.0.2 | 7 years ago | 8.4 KB | MIT |
| 1.0.1 | 8 years ago | 8.2 KB | MIT |
| 1.0.0 | 8 years ago | 8.1 KB | MIT |
| 0.3.0 | 12 years ago | — | MIT |
| 0.2.0 | 12 years ago | — | MIT |
| 0.1.0 | 12 years ago | — | MIT |
| 0.0.0 | 12 years ago | — | MIT |
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.