{"library":"decompress-response","type":"library","category":null,"description":"Decompress-response is a focused utility package designed to automatically decompress HTTP `IncomingMessage` streams based on their `Content-Encoding` header. It supports common compression algorithms including `gzip`, `deflate`, `brotli`, and `zstd` (added in v10.0.0). Currently at stable version 10.0.0, released in late 2023, the package follows a release cadence tied to Node.js LTS updates, with major versions often introducing increased Node.js engine requirements. A key differentiator is its straightforward, single-function API that transforms an `http.IncomingMessage` stream into a decompressed stream, making it easy to integrate. It is notably used internally by popular HTTP client libraries like `got` and operates as a pure ECMAScript Module (ESM) package since version 8, requiring modern JavaScript module syntax for usage.","language":"javascript","status":"active","version":"10.0.0","tags":["javascript","decompress","response","http","https","zlib","gzip","zip","deflate","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install decompress-response","imports":["import decompressResponse from 'decompress-response';","import http from 'node:http';","import zlib from 'node:zlib';"]},{"cmd":"yarn add decompress-response","imports":[]},{"cmd":"pnpm add decompress-response","imports":[]}],"homepage":null,"github":"https://github.com/sindresorhus/decompress-response","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/decompress-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/decompress-response/compatibility"}}