happy-opfs • Docs
happy-opfs / unzipFromUrl
function unzipFromUrl(
zipFileUrl,
targetPath,
requestInit?): AsyncVoidIOResult
Unzip a remote zip file to a directory. Equivalent to `unzip -o -d
Use fflate as the unzip backend.
@param zipFileUrl - Zip file url.
@param targetPath - The directory to unzip to.
@param requestInit - Optional request initialization parameters.
@returns A promise that resolves to an AsyncIOResult
indicating whether the zip file was successfully unzipped.
Parameter | Type |
---|---|
zipFileUrl |
string |
targetPath |
string |
requestInit ? |
FsRequestInit |
AsyncVoidIOResult