content-type 3.x
Use content-type 3.x as an ESM-only parser and formatter for HTTP Content-Type header values. Covers parse options, formatting, validation boundaries, and migration away from older CommonJS/request-response examples.
- For
content-type@3.0.0- Verified
- 2026-09-08, 5 examples executed
- Package
@modootoday/pmcp-content-type@3.0.0
What it covers
- Scope
- Parse a Content-Type string
- Parse options
- Format a Content-Type value
- Migration traps
- What this skill does not cover
One example from this skill
This is the skill's own text, not a summary of it. It runs: that is what verifying means here.
import * as assert from "node:assert/strict";
import * as contentType from "content-type";
const parsed = contentType.parse("image/svg+xml; charset=utf-8");
assert.equal(parsed.type, "image/svg+xml");
assert.equal(parsed.parameters.charset, "utf-8");
What it did in the sandbox
Verifying this skill meant installing the package and running code against it with no route out. This is what happened, quoted from the run. The full ledger lists every package examined, including the ones that never became a skill.
-
prepare: ts-scripts install && npm run buildthe package -
prepare: ts-scripts install && npm run buildthe package
Getting it
With a subscription:
npx -y @modootoday/pmcp login
npx -y @modootoday/pmcp install @modootoday/pmcp-content-type
It installs as a dev dependency of your project, and the MCP server finds it there like any other skill.