6.0.0 • Published 10 months ago

@enertrag/zip v6.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@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.

ParamType
optionsZipOptions

Returns: Promise<ZipResult>


Interfaces

Available

PropTypeDescription
availablebooleantrue if available, false otherwise

ZipResult

PropTypeDescription
successbooleantrue if the file was successfully saved, false otherwise

ZipOptions

PropTypeDescription
sourceDirstringThe uri of the source directory.
destFilenamestringThe name of the destination file.

License

MIT

Copyright © 2022 ENERTRAG SE enertrag.com

6.0.0

10 months ago

5.0.0

1 year ago

1.1.0

3 years ago

1.0.0

3 years ago