http-assert
npmv1.5.0assert with status codes
Overview
http-assert is an npm package that assert with status codes. The latest version is 1.5.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need assert with status codes 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.
Relationship graph
Dependencies (left) and dependents (right) of http-assert.
Dependencies
Runtime (2)
Dev (9)
Used by
Popular packages that depend on http-assert.
Alternatives to http-assert
HTTP status utility
Create HTTP error objects
Create and parse HTTP Content-Type header
Create and parse Content-Disposition header
HTTP response freshness testing
Fast, unopinionated, minimalist web framework
Promise based HTTP client for the browser and node.js
Range header field string parser
Manipulate the HTTP Vary header
Create simple HTTP ETags
Parse HTTP X-Forwarded-For header
Koa web app framework
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.
Create and parse Content-Disposition header
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
Version history
| Version | Published | License |
|---|---|---|
| 1.5.0latest | 4 years ago | MIT |
| 1.4.1 | 7 years ago | MIT |
| 1.4.0 | 7 years ago | MIT |
| 1.3.0 | 9 years ago | MIT |
| 1.2.0 | 10 years ago | MIT |
| 1.1.1 | 11 years ago | MIT |
| 1.1.0 | 11 years ago | MIT |
| 1.0.2 | 12 years ago | MIT |
| 1.0.1 | 12 years ago | MIT |
| 1.0.0 | 12 years ago | MIT |
| 0.1.1 | 12 years ago | MIT |
| 0.1.0 | 12 years ago | MIT |
| 0.0.1 | 12 years ago | MIT |
Maintainers
Frequently asked questions
How do I install http-assert?
Run `npm install http-assert` to add http-assert to your npm project.
What license is http-assert released under?
http-assert is distributed under the MIT license.
How popular is http-assert?
http-assert has approximately 0 downloads per week and 1 known dependent packages.