Represents an instance used to create an unzipped stream.
This example will take a zip file, decompress it and then recompress each file in it, saving it to disk.
for await (const entry of (await fetch(urlToZippedFile)).body.pipeThrough(new ZipWriterStream())) if (entry.readable) { console.log(entry.filename) entry.readable .pipeThrough(ZipReaderStream().transform(entry.filename)) .pipeTo((await Deno.create(entry.filename + '.zip')).writable) } Copy
for await (const entry of (await fetch(urlToZippedFile)).body.pipeThrough(new ZipWriterStream())) if (entry.readable) { console.log(entry.filename) entry.readable .pipeThrough(ZipReaderStream().transform(entry.filename)) .pipeTo((await Deno.create(entry.filename + '.zip')).writable) }
Creates the stream.
Optional
The options.
The readable stream.
The writable stream.
Represents an instance used to create an unzipped stream.
Example
This example will take a zip file, decompress it and then recompress each file in it, saving it to disk.