{"library":"mimic-response","type":"library","category":null,"description":"The `mimic-response` library is a utility designed to replicate properties and events from a Node.js `http.IncomingMessage` (an HTTP response stream) onto any generic Node.js stream. This is particularly useful in scenarios like proxying or transforming HTTP responses where the downstream stream needs to inherit metadata such as `statusCode`, `statusMessage`, and `headers` without copying the actual data payload. The current stable version is `4.0.0`. Historically, new major versions have been released roughly annually, typically coinciding with updated Node.js LTS requirements and ecosystem shifts like the move to pure ESM. Its key differentiator lies in its specific focus on mirroring *response stream properties* rather than content, providing a lightweight way to maintain HTTP context across stream transformations. It stands apart from related tools like `mimic-fn` (for functions) or broader stream cloning utilities by targeting the specific metadata of an HTTP response.","language":"javascript","status":"active","version":"4.0.0","tags":["javascript","mimic","response","stream","http","https","request","get","core"],"install":[{"cmd":"npm install mimic-response","imports":["import mimicResponse from 'mimic-response';","import mimicResponse from 'mimic-response';","import type mimicResponse from 'mimic-response';"]},{"cmd":"yarn add mimic-response","imports":[]},{"cmd":"pnpm add mimic-response","imports":[]}],"homepage":null,"github":"https://github.com/sindresorhus/mimic-response","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/mimic-response","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/mimic-response/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Mon Jul 20","install_tag":null}}