Coder Social home page Coder Social logo

goodboydigital / cordova-plugin-zip Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mobilechromeapps/cordova-plugin-zip

0.0 3.0 1.0 192 KB

Zip plugin for Cordova apps

License: Other

Java 2.14% C 81.18% Objective-C 9.06% C++ 6.80% JavaScript 0.81%

cordova-plugin-zip's Introduction

cordova-plugin-zip

A Cordova plugin to unzip files in Android and iOS.

Installation

cordova plugin add cordova-plugin-zip

Usage

zip.unzip(<source zip>, <destination dir>, <callback>, [<progressCallback>]);

Both source and destination arguments can be URLs obtained from the HTML File interface or absolute paths to files on the device.

The callback argument will be executed when the unzip is complete, or when an error occurs. It will be called with a single argument, which will be 0 on success, or -1 on failure.

The progressCallback argument is optional and will be executed whenever a new ZipEntry has been extracted. E.g.:

var progressCallback = function(progressEvent) {
    $( "#progressbar" ).progressbar("value", Math.round((progressEvent.loaded / progressEvent.total) * 100));
};

The values loaded and total are the number of compressed bytes processed and total. Total is the file size of the zip file.

Release Notes

3.1.0 (Feb 23, 2016)

  • Updated SSZipArchive (ios lib) to 1.1

3.0.0 (May 1, 2015)

  • Updated SSZipArchive (ios lib) to 0.2.1
  • Update file plugin dependency to use npm version (cordova-plugin-file)

2.1.0 (May 1, 2014)

  • Added progress events
  • Fix iOS path handling when given file: URLs as src/target

cordova-plugin-zip's People

Contributors

adangel avatar agrieve avatar bshepherdson avatar clelland avatar eliak avatar fela98 avatar goodboydigital avatar mmocny avatar schmitzdenis avatar tlancina avatar

Watchers

 avatar  avatar  avatar

Forkers

jollywise

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.