@enertrag/zip
TypeScript icon, indicating that this package has built-in type declarations

5.0.0 • Public • Published

@enertrag/zip

Capacitor archive (zip) share plugin

Install

npm install @enertrag/zip
npx cap sync

API

isAvailable()

isAvailable() => Promise<Available>

Checks if the functionality is available on the current platform.

Returns: Promise<Available>


shareArchive(...)

shareArchive(options: ZipOptions) => Promise<ZipResult>

Creates a zip archive including the content of the specified directory. The created file will be saved/shared via the os's mechanisms.

Param Type
options ZipOptions

Returns: Promise<ZipResult>


Interfaces

Available

Prop Type Description
available boolean true if available, false otherwise

ZipResult

Prop Type Description
success boolean true if the file was successfully saved, false otherwise

ZipOptions

Prop Type Description
sourceDir string The uri of the source directory.
destFilename string The name of the destination file.

License

MIT

Copyright © 2022 ENERTRAG SE enertrag.com

Readme

Keywords

Package Sidebar

Install

npm i @enertrag/zip

Weekly Downloads

2

Version

5.0.0

License

MIT

Unpacked Size

22.3 kB

Total Files

23

Last publish

Collaborators

  • enertrag