GitShow/sindresorhus/decompress-response
sindresorhus

decompress-response

Decompress a HTTP response if needed

by sindresorhus
Star on GitHubForknpm

JavaScript

75 stars12 forks10 contributorsQuiet · 10mo agoSince 2015v10.0.0MIT

Meet the team

See all 10 on GitHub →
sindresorhus
sindresorhus46 contributions
kevva
kevva4 contributions
BendingBender
BendingBender2 contributions
coreyfarrell
coreyfarrell1 contribution
danielgindi
danielgindi1 contribution
lukechilds
lukechilds1 contribution
Richienb
Richienb1 contribution
bodinsamuel
bodinsamuel1 contribution

Languages

View on GitHub →
JavaScript96.8%
TypeScript3.2%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
sindresorhus
Use `stream.pipeline`ClosedIssue

https://nodejs.org/api/stream.html#streampipelinesource-transforms-destination-callback

sindresorhus · 11mo ago
snytkine
content-encoding header should be removedClosedIssue

Return of this function is instance of http.IncomingMessage The problem is that this function does not delete content-encoding header, so the result is that you have an IncomingMessage object with content-encoding header with original value like 'gzip' but the stream is no longer compressed. I think the the function should also delete content-encoding header before returning the result stream

snytkine · 2y ago
klxu03
Content length header not being modified if it is also compressedClosedIssue

Hey Sindre! I noticed in your source code that you do not modify the content length header, even if the response was compressed and you have decompressed it. I was wondering if there was a reason for this?

klxu03 · 2y ago
Structured data for AI agents

Repository: sindresorhus/decompress-response. Description: Decompress a HTTP response if needed Stars: 75, Forks: 12. Primary language: JavaScript. Languages: JavaScript (96.8%), TypeScript (3.2%). License: MIT. Latest release: v10.0.0 (10mo ago). Open PRs: 0, open issues: 0. Last activity: 10mo ago. Community health: 85%. Top contributors: sindresorhus, kevva, BendingBender, coreyfarrell, danielgindi, lukechilds, Richienb, bodinsamuel, binary-person, szmarczak.

·@ofershap

Replace github.com with gitshow.dev