Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1019 Bytes

unzipFromUrl.md

File metadata and controls

39 lines (27 loc) · 1019 Bytes

happy-opfsDocs


happy-opfs / unzipFromUrl

Function: 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.

Parameters

Parameter Type
zipFileUrl string
targetPath string
requestInit? FsRequestInit

Returns

AsyncVoidIOResult

Defined in

fs/opfs_unzip.ts:71