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 unzipFromUrl('https://example.com/archive.zip', '/extracted'))
.inspect(() => console.log('Remote zip file unzipped successfully'));
// With timeout
(await unzipFromUrl('https://example.com/archive.zip', '/extracted', { timeout: 5000 }))
.inspect(() => console.log('Remote zip file unzipped successfully'));
Unzip a remote zip file to a directory using batch decompression. Equivalent to
unzip -o <zipFilePath> -d <destDir>This function loads the entire zip file into memory before decompression. Faster for small files (<5MB). For large files, consider using unzipStreamFromUrl instead.
Use fflate as the unzip backend.
This API is built on
@happy-ts/fetch-tfor downloading the zip file.optionssupportstimeoutandonProgressoptions.