Zip file url.
The directory to unzip to.
OptionalrequestInit: FsRequestInitOptional request options.
A promise that resolves to an AsyncIOResult indicating whether the zip file was successfully unzipped.
(await unzipStreamFromUrl('https://example.com/large-archive.zip', '/extracted'))
.inspect(() => console.log('Remote zip file unzipped successfully'));
// With timeout
(await unzipStreamFromUrl('https://example.com/archive.zip', '/extracted', { timeout: 30000 }))
.inspect(() => console.log('Remote zip file unzipped successfully'));
Unzip a remote zip file to a directory using streaming decompression. Equivalent to
unzip -o <zipFilePath> -d <destDir>This function processes the zip file incrementally, minimizing memory usage. Recommended for large files (>10MB). For small files, consider using unzipFromUrl instead.
Use fflate as the unzip backend.
This API is built on
@happy-ts/fetch-tfor downloading the zip file.optionssupportstimeoutandonProgressoptions.