5.0.0 • Published 2 months ago

@enertrag/zip v5.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 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

5.0.0

2 months ago

1.1.0

2 years ago

1.0.0

2 years ago