type-is
npmv2.1.0Infer the content-type of a request.
Overview
type-is is an npm package that infer the content-type of a request. It is extremely widely used, with about 116.2M downloads per week and 1 known dependents in the graph. The latest version is 2.1.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need infer the content-type of a request and value a battle-tested, widely-adopted 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
- Large, well-established user base (116.2M weekly downloads).
- 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.
Relationship graph
Dependencies (left) and dependents (right) of type-is.
Dependencies
Dev (9)
Used by
Popular packages that depend on type-is.
Alternatives to type-is
type-check allows you to check the types of JavaScript values at runtime with a Haskell like type syntax.
Media Type Database
TypeScript-first schema declaration and validation library with static type inference
Higher-level content negotiation
Frequently installed together
Create HTTP error objects
Create and parse HTTP Content-Type header
Execute a callback when a request closes, finishes, or errors
Lightweight debugging utility for Node.js and the browser
The ultimate javascript content-type utility.
A querystring parser that supports nesting and arrays, with a depth limit
HTTP status utility
An AST-based pattern checker for JavaScript.
Encode a URL to a percent-encoded form, excluding already-encoded sequences
Higher-level content negotiation
Create and parse Content-Disposition header
HTTP response freshness testing
Version history
| Version | Published | License |
|---|---|---|
| 2.1.0latest | 2 months ago | MIT |
| 2.0.1 | 1 year ago | MIT |
| 2.0.0 | 1 year ago | MIT |
| 1.6.18 | 7 years ago | MIT |
| 1.6.17 | 7 years ago | MIT |
| 1.6.16 | 8 years ago | MIT |
| 1.6.15 | 9 years ago | MIT |
| 1.6.14 | 9 years ago | MIT |
| 1.6.13 | 10 years ago | MIT |
| 1.6.12 | 10 years ago | MIT |
| 1.6.11 | 10 years ago | MIT |
| 1.6.10 | 10 years ago | MIT |
| 1.6.9 | 10 years ago | MIT |
| 1.6.8 | 11 years ago | MIT |
| 1.6.7 | 11 years ago | MIT |
| 1.6.6 | 11 years ago | MIT |
| 1.6.5 | 11 years ago | MIT |
| 1.6.4 | 11 years ago | MIT |
| 1.6.3 | 11 years ago | MIT |
| 1.6.2 | 11 years ago | MIT |
Funding
Frequently asked questions
How do I install type-is?
Run `npm install type-is` to add type-is to your npm project.
What license is type-is released under?
type-is is distributed under the MIT license.
How popular is type-is?
type-is has approximately 116,237,319 downloads per week and 1 known dependent packages.