This function downloads and compresses the file in a streaming manner,
minimizing memory usage. Recommended for large remote files.
For small files, consider using zipFromUrl instead.
// Stream zip a large remote file (awaitzipStreamFromUrl('https://example.com/large-file.bin', '/backups/file.zip')) .inspect(() =>console.log('Remote file zipped successfully'));
Zip a remote file using streaming compression.
This function downloads and compresses the file in a streaming manner, minimizing memory usage. Recommended for large remote files. For small files, consider using zipFromUrl instead.
Use fflate as the zip backend.
This API is built on
@happy-ts/fetch-tfor downloading the source.requestInitsupportstimeout,onProgress, andfilenamevia ZipFromUrlRequestInit.