responselike provides a response-like object for mocking a Node.js HTTP response stream. It creates a streamable response with status code, headers, body, and URL, which is useful for formatting cached responses so code that expects a real Node.js HTTP response can consume them.
Project status
- Maintenance status: The repository shows the latest activity on 2025-10-10, and with no further updates since then it appears quiet/dormant rather than actively maintained as of 2026-08-12.
- Update cadence: There is a short burst of updates on 2025-10-10 (v4.0.0, v4.0.1, v4.0.2 within hours), but no evidence of continued cadence after that date.
AI summary generated
Recent updates
v4.0.2
Release v4.0.2 makes a small change to the `Response` mock stream, focused on the `complete` state. The release notes are minimal and only mention a fix related to the “complete state”.
v4.0.1
This release, v4.0.1, updates the TypeScript declarations for responselike. It adds a `complete: boolean` property to the `Response` class typing to indicate whether the stream has ended and been successfully parsed.
v4.0.0
v4.0.0 raises the minimum supported Node.js version to 20 and addresses a hang encountered when piping through decompress-response. The code changes also add stream-behavior adjustments and a new `complete` flag to improve compatibility with transform/pipeline scenarios.
Breakingv3.0.0
v3.0.0 introduces major upgrades that will impact how developers consume this package. It requires a newer Node.js version, switches the package to pure ESM, and changes the Response constructor API to accept an options object instead of multiple parameters.
Breaking