Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 921 Bytes

README.md

File metadata and controls

31 lines (23 loc) · 921 Bytes

Capacitor Zip

npm npm Build Status

Installation

  • new version: npm i git+https://github.com/jedilor/capacitor-zip.git

  • old version npm i capacitor-zip

Usage

import { Zip } from 'capacitor-zip';
const zip = new Zip();

await zip.zip({
    source : source,
    destination: destination,
    keepParent: true, // Optional default true
    password: 'password', // Optional
},(progress)=>{});

await zip.unZip({
    source : source,
    destination: destination,
    overwrite: true, // Optional default true
    password: 'password', // Optional
},(progress)=>{});