Something went wrong. Try again.
(maybe) decompresses a stream jsr.io/@mary/maybe-decompression-stream
jsr typescript
Something went wrong. Try again.
TypeScript 100%
README.md
maybe-decompression-stream #
decompresses a stream of data if it is compressed with gzip, otherwise it passes the data through.
const response = await fetch('resource.tgz');
const stream = response.body.pipeThrough(new MaybeDecompressionStream());
for await (const chunk of stream) {
// ...
}