All Projects → FortuneN → cordova-plugin-zeep

FortuneN / cordova-plugin-zeep

Licence: Apache-2.0 license
Zip compression/decompression for the cordova/phonegap platform

Programming Languages

c
50402 projects - #5 most used programming language
objective c
16641 projects - #2 most used programming language
C#
18002 projects
javascript
184084 projects - #8 most used programming language
java
68154 projects - #9 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to cordova-plugin-zeep

cordova-plugin-example
Example Cordova plugin for iOS and Android to support blog post.
Stars: ✭ 15 (-44.44%)
Mutual labels:  cordova-android-plugin, cordova-android, phonegap, cordova-plugin, cordova-ios
cordova-plugin-flurryanalytics
Adds support for all that Flurry Analytics flavored goodness to your Cordova based apps
Stars: ✭ 23 (-14.81%)
Mutual labels:  cordova, cordova-android, phonegap, cordova-plugin, cordova-ios
cordova-gmv-barcode-scanner
A Cordova barcode scanning plugin based on the Google Mobile Vision library for iOS & Android.
Stars: ✭ 48 (+77.78%)
Mutual labels:  cordova, cordova-android, cordova-plugin, cordova-ios
cordova-plugin-webpack
Integrate webpack into your Cordova workflow.
Stars: ✭ 61 (+125.93%)
Mutual labels:  cordova, cordova-android, cordova-plugin, cordova-ios
cordova-plugin-ironsource-ads
Cordova plugin for IronSource ads
Stars: ✭ 17 (-37.04%)
Mutual labels:  cordova-android, phonegap, cordova-plugin, cordova-ios
cordova-swift3-plugin-example
Swift 3 Cordova plugin example to support blog post.
Stars: ✭ 23 (-14.81%)
Mutual labels:  cordova, phonegap, cordova-plugin
cordova-plugin-dbcopy
Copy SQLite Database from www folder to default app database location
Stars: ✭ 90 (+233.33%)
Mutual labels:  cordova, cordova-android-plugin, cordova-plugin
Cordova Admob Pro
🔥 Cordova Plugin for Google AdMob, DFP, ADX. Easy monetization using mobile Ad, with single line of JavaScript. Compatible with Cordova CLI, Inoic, PhoneGap Build, etc.
Stars: ✭ 690 (+2455.56%)
Mutual labels:  cordova, phonegap, cordova-plugin
cordova-plugin-today-widget
Add a today widget app extension target to your cordova project.
Stars: ✭ 51 (+88.89%)
Mutual labels:  cordova, cordova-plugin, cordova-ios
Create-a-custom-Cordova-plugin
How to create a custom cordova plugin and bridge it between your native code and a new or existing Cordova project
Stars: ✭ 32 (+18.52%)
Mutual labels:  cordova, cordova-android, cordova-plugin
Blinkid Cordova
ID scanning for cross-platform apps built with Cordova and Phonegap.
Stars: ✭ 44 (+62.96%)
Mutual labels:  cordova, phonegap, cordova-plugin
cordova-plugin-android-window-background
Simple Cordova plugin to set Android window background on start-up 🎨 🍭
Stars: ✭ 15 (-44.44%)
Mutual labels:  cordova, cordova-android, cordova-plugin
Cordova Plugin Linkedin
Cordova plugin for LinkedIn
Stars: ✭ 17 (-37.04%)
Mutual labels:  cordova, phonegap, cordova-plugin
JiaCordova
在Cordova及插件的基础上封装一些常用的功能,不断更新中
Stars: ✭ 35 (+29.63%)
Mutual labels:  cordova, cordova-plugin, cordova-ios
cordova-plugin-downloadmanager
A Cordova plugin to download file in system's default download manager
Stars: ✭ 45 (+66.67%)
Mutual labels:  cordova, phonegap, cordova-plugin
cordova-plugin-exoplayer
Media player plugin for Cordova that uses Google's ExoPlayer
Stars: ✭ 48 (+77.78%)
Mutual labels:  cordova, phonegap
phonegap-template-vue-f7-tabs
A TabBar PhoneGap template using Vue.js and Framework7
Stars: ✭ 31 (+14.81%)
Mutual labels:  cordova, phonegap
ftpConnect
A simple and robust dart FTP Client Library to interact with FTP Servers with possibility of zip and unzip files.
Stars: ✭ 43 (+59.26%)
Mutual labels:  zip, unzip
cordova-plugin-purchases
Cordova in-app purchases and subscriptions made easy.
Stars: ✭ 52 (+92.59%)
Mutual labels:  cordova, cordova-plugin
cordova-study
📱 Cordova学习记录,Cordova插件的使用,热更新、media、device、集成x5内核等等。
Stars: ✭ 19 (-29.63%)
Mutual labels:  cordova, cordova-plugin

cordova-plugin-zeep

Zip compression/decompression on the Apache Cordova / PhoneGap platform

Platforms

  • ios
  • android
  • windows

Add to project

cordova plugin add cordova-plugin-zeep

Remove from project

cordova plugin remove cordova-plugin-zeep

Compression (Zeep.zip or $cordovaZeep.zip)

from : [string] the path/url of the folder whose contents you want to compress
to     : [string] the path/url of the zip file that you want to produce

Decompression (Zeep.unzip or $cordovaZeep.unzip)

from : [string] the path/url of the zip file that you want to decompress
to     : [string] the path/url of the folder in which you want to deposit the contents of the zip file

Plain JS example

var source    = cordova.file.applicationDirectory,
    zip       = cordova.file.cacheDirectory + 'source.zip',
    extracted = cordova.file.cacheDirectory + 'extracted';

console.log('source    : ' + source   );
console.log('zip       : ' + zip      );
console.log('extracted : ' + extracted);

console.log('zipping ...');

Zeep.zip({
    from : source,
    to   : zip
}, function() {

    console.log('zip success!');
    console.log('unzipping ...');

    Zeep.unzip({
        from : zip,
        to   : extracted
    }, function() {
        console.log('unzip success!');
    }, function(e) {
        console.log('unzip error: ', e);
    });

}, function(e) {
    console.log('zip error: ', e);
});

Angular example

(+ other angular-based frameworks -> Ionic, Mobile Angular UI, LumX, MEAN, Angular Foundation, ...)

var app = angular.module('MyApp', ['ngCordova.plugins.zeep'])

...

app.controller('MyController', function($scope, $cordovaZeep) {
    
    var source    = cordova.file.applicationDirectory,
        zip       = cordova.file.cacheDirectory + 'source.zip',
        extracted = cordova.file.cacheDirectory + 'extracted';
    
    console.log('source    : ' + source   );
    console.log('zip       : ' + zip      );
    console.log('extracted : ' + extracted);
    
    console.log('zipping ...');
    
    $cordovaZeep.zip({
        from : source,
        to   : zip
    }).then(function() {
        
        console.log('zip success!');
        console.log('unzipping ...');
        
        $cordovaZeep.unzip({
            from : zip,
            to   : extracted
        }).then(function() {
            console.log('unzip success!');
        }, function(e) {
            console.log('unzip error: ', e);
        });
        
    }, function(e) {
        console.log('zip error: ', e);
    });
    
});

License

Apache 2.0

Buy me a beer (maybe)

If you find this plugin useful, perhaps you can buy me a beer :)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].