@smart-pro/smartzip
Ionic Capacitor plugin for unzip a file.
Install
npm install @smart-pro/smartzip
npx cap sync
API
unzip(...)
unzip(options: UnzipOptions) => Promise<{ result: boolean; }>
Unzip a zipPath file to destFolder. Event: "unzipProgress" entry, entryNumber, total
Param | Type | Description |
---|---|---|
options |
UnzipOptions |
options for unzip |
Returns: Promise<{ result: boolean; }>
Interfaces
UnzipOptions
Prop | Type | Description |
---|---|---|
zipPath |
string |
Zip file's path |
destFolder |
string |
Destination folder's path |