content-disposition
npmv3.0.0TypeScriptCreate and parse Content-Disposition header
Safe to adopt
Yes — content-disposition scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 27 days ago. 5 releases in the last 2 years.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- AMaintenance: grade A, Excellent.
Last published 27 days ago. 5 releases in the last 2 years.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 49 KB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 4 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 content-disposition 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 >=22
- Module format
- ESM only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the content-disposition README.
import { create, parse, format } from 'content-disposition';content-disposition vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| content-dispositionthis page | 0 | 2 | MIT | 27 days ago |
| content-type | 191.4M | 6 | MIT | 1 day ago |
| vary | 100.2M | 4 | MIT | 1 day ago |
| etag | 100M | 4 | MIT | 1 day ago |
| negotiator | 183.3M | 2 | MIT | 1 day ago |
| node-fetch | 172.9M | 9 | MIT | 1 day ago |
Dependencies
Declared by content-disposition v3.0.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (4)
Used by
Popular packages that depend on content-disposition.
Relationship graph
Dependencies (left) and dependents (right) of content-disposition.
Frequently installed together
Create and parse HTTP Content-Type header
The ultimate javascript content-type utility.
Create HTTP error objects
Encode a URL to a percent-encoded form, excluding already-encoded sequences
Infer the content-type of a request.
Manipulate the HTTP Vary header
Execute a callback when a request closes, finishes, or errors
HTTP response freshness testing
Higher-level content negotiation
HTTP status utility
parse a url with memoization
Escape string for use in HTML
Release history
5 releases in the last two years, typically about 34 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 3.0.0latest | 27 days ago | 49 KB | MIT |
| 2.0.1 | 3 months ago | 47 KB | MIT |
| 2.0.0 | 4 months ago | 47 KB | MIT |
| 1.1.0 | 5 months ago | 19 KB | MIT |
| 1.0.1 | 9 months ago | 19 KB | MIT |
| 1.0.0 | 2 years ago | 19 KB | MIT |
| 0.5.4 | 4 years ago | 19 KB | MIT |
| 0.5.3 | 7 years ago | 19 KB | MIT |
| 0.5.2 | 9 years ago | — | MIT |
| 0.5.1 | 10 years ago | — | MIT |
| 0.5.0 | 12 years ago | — | MIT |
| 0.4.0 | 12 years ago | — | MIT |
| 0.3.0 | 12 years ago | — | MIT |
| 0.1.2 | 12 years ago | — | MIT |
| 0.2.0 | 12 years ago | — | MIT |
Overview
content-disposition is an npm package that create and parse Content-Disposition header. It has 2 known dependents in the graph. The latest version is 3.0.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need create and parse Content-Disposition header and value a focused 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
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Funding
Frequently asked questions
Should I use content-disposition?
Yes — content-disposition scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 27 days ago. 5 releases in the last 2 years.
How do I install content-disposition?
Run `npm install content-disposition` to add content-disposition to your npm project.
What license is content-disposition released under?
content-disposition is distributed under the MIT license.
How popular is content-disposition?
npm does not publish download counts. Within PackageGraph's crawl, 2 known packages depend on content-disposition.
Is content-disposition still maintained?
The most recent release of content-disposition (v3.0.0) was published 27 days ago.
Does content-disposition run install scripts?
No. content-disposition does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.