{"library":"clone-response","type":"library","category":null,"description":"The `clone-response` package provides a utility function to duplicate a Node.js HTTP response stream, effectively creating an unconsumed copy. This is particularly useful in scenarios where a response stream needs to be processed in multiple asynchronous contexts or passed to different consumers without fully draining the original stream for all parties. The package ensures that all properties and methods from the original `IncomingMessage` are copied to the new stream, creating a complete duplicate. As of version 2.0.0, it is a pure ESM module and requires Node.js 14 or higher. The package maintains a stable release cadence, primarily updating for Node.js compatibility and modern JavaScript module standards. Its core differentiator is the reliable duplication of a response stream's state and data, enabling flexible handling of HTTP responses without complex stream buffering or re-fetching.","language":"javascript","status":"active","version":"2.0.0","tags":["javascript","clone","response","duplicate","copy","http","stream"],"last_verified":"Wed May 27","install":[{"cmd":"npm install clone-response","imports":["import cloneResponse from 'clone-response';","import cloneResponse from 'clone-response';","import http from 'node:http';"]},{"cmd":"yarn add clone-response","imports":[]},{"cmd":"pnpm add clone-response","imports":[]}],"homepage":null,"github":"https://github.com/sindresorhus/clone-response","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/clone-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/clone-response/compatibility"}}