@capgo/capacitor-zip
Overview
Section titled “Overview”Compress folders for export, unpack downloaded updates, and listen to progress events during long archives. Android supports password protected AES zip via zip4j. iOS uses ZIPFoundation. Web supports unzip() with per file downloads.
Remember that zip() is not available on web, only unzip().
Platform support
Section titled “Platform support”| Platform | Support | Notes |
|---|---|---|
| iOS | Yes | ZIPFoundation, zip and unzip |
| Android | Yes | zip4j, AES password support |
| Web | Partial | Unzip only, files download individually |
Core Capabilities
Section titled “Core Capabilities”zip- Compress a file or directory to create a ZIP archive.unzip- Extract a ZIP archive to a specified destination directory.
Public API
Section titled “Public API”| Method | Description |
|---|---|
zip | Compress a file or directory to create a ZIP archive. |
unzip | Extract a ZIP archive to a specified destination directory. |
getPluginVersion | Get the native plugin version. |
Source Of Truth
Section titled “Source Of Truth”This reference is synced from src/definitions.ts in capacitor-zip.
Keep going from @capgo/capacitor-zip
Section titled “Keep going from @capgo/capacitor-zip”If you are using @capgo/capacitor-zip to plan native plugin work, connect it with Using @capgo/capacitor-zip for the native capability in Using @capgo/capacitor-zip, Capgo Plugin Directory for the product workflow in Capgo Plugin Directory, Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, Adding or Updating Plugins for the implementation detail in Adding or Updating Plugins, and Ionic Enterprise Plugin Alternatives for the product workflow in Ionic Enterprise Plugin Alternatives.