content-disposition
npmv2.0.1TypeScriptCreate and parse Content-Disposition header
Overview
content-disposition is an npm package that create and parse Content-Disposition header. It is extremely widely used, with about 115.8M downloads per week and 1 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 create and parse Content-Disposition header 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 (115.8M weekly downloads).
- 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.
Relationship graph
Dependencies (left) and dependents (right) of content-disposition.
Dependencies
Dev (4)
Used by
Popular packages that depend on content-disposition.
Alternatives to content-disposition
Create and parse HTTP Content-Type header
Manipulate the HTTP Vary header
Create simple HTTP ETags
HTTP status utility
Create HTTP error objects
HTTP response freshness testing
Fast, unopinionated, minimalist web framework
Promise based HTTP client for the browser and node.js
Range header field string parser
Parse HTTP X-Forwarded-For header
Koa web app framework
HTTP content negotiation
Frequently installed together
The ultimate javascript content-type utility.
HTTP status utility
Create HTTP error objects
Create and parse HTTP Content-Type header
Encode a URL to a percent-encoded form, excluding already-encoded sequences
Higher-level content negotiation
Infer the content-type of a request.
Execute a callback when a request closes, finishes, or errors
HTTP response freshness testing
Escape string for use in HTML
Manipulate the HTTP Vary header
parse a url with memoization
Version history
| Version | Published | License |
|---|---|---|
| 2.0.1latest | 1 month ago | MIT |
| 2.0.0 | 2 months ago | MIT |
| 1.1.0 | 3 months ago | MIT |
| 1.0.1 | 8 months ago | MIT |
| 1.0.0 | 1 year ago | MIT |
| 0.5.4 | 4 years ago | MIT |
| 0.5.3 | 7 years ago | MIT |
| 0.5.2 | 9 years ago | MIT |
| 0.5.1 | 10 years ago | MIT |
| 0.5.0 | 11 years ago | MIT |
| 0.4.0 | 11 years ago | MIT |
| 0.3.0 | 11 years ago | MIT |
| 0.1.2 | 12 years ago | MIT |
| 0.2.0 | 12 years ago | MIT |
| 0.1.1 | 12 years ago | MIT |
| 0.1.0 | 12 years ago | MIT |
| 0.0.0 | 12 years ago | MIT |
Maintainers
Funding
Frequently asked questions
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?
content-disposition has approximately 115,846,371 downloads per week and 1 known dependent packages.