{"id":21968294,"url":"https://github.com/eternalsayed/cordova-plugin-eszip","last_synced_at":"2026-04-11T14:32:40.373Z","repository":{"id":57208185,"uuid":"79838605","full_name":"eternalsayed/cordova-plugin-eszip","owner":"eternalsayed","description":"Cordova plugin for hybrid applications, such as those made with Ionic framework, to zip files and folders into a single zip file.","archived":false,"fork":false,"pushed_at":"2017-02-05T14:32:57.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-18T03:18:24.968Z","etag":null,"topics":["archive","cordova-plugin","file","folders","hybrid-application","ionic-framework","zip"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eternalsayed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-23T19:21:37.000Z","updated_at":"2017-02-15T13:56:48.000Z","dependencies_parsed_at":"2022-09-08T20:42:12.880Z","dependency_job_id":null,"html_url":"https://github.com/eternalsayed/cordova-plugin-eszip","commit_stats":null,"previous_names":["eternalsayed/es-zip"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eternalsayed/cordova-plugin-eszip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eternalsayed%2Fcordova-plugin-eszip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eternalsayed%2Fcordova-plugin-eszip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eternalsayed%2Fcordova-plugin-eszip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eternalsayed%2Fcordova-plugin-eszip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eternalsayed","download_url":"https://codeload.github.com/eternalsayed/cordova-plugin-eszip/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eternalsayed%2Fcordova-plugin-eszip/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259599313,"owners_count":22882349,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["archive","cordova-plugin","file","folders","hybrid-application","ionic-framework","zip"],"created_at":"2024-11-29T13:52:16.168Z","updated_at":"2025-12-30T22:35:42.920Z","avatar_url":"https://github.com/eternalsayed.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cordova-plugin-eszip\nCordova plugin to provide zip functionality on hybrid applications, such as on those made with Ionic framework. The Java code is mostly borrowed from StackOverflow and so, I've done preprocessing in Javascript. Change it as it may suit you.\n\n# Why was this plugin needed?\nThe official cordova plugin for zipping failed for me, resulting in `bad zip`. I tried to debug it but couldn't so I thought why not make a simpler one which gaurantees solution.\n\n# Getting started\nInstall the plugin by using following command:\n\n\u003cpre\u003e\u003ccode\u003e\ncordova plugin add cordova-plugin-eszip\n\u003c/code\u003e\u003c/pre\u003e\nThereafter, the global object `ESzip` will be available in your app. Please note that this will not run on browsers so please test on actual devices/simulators only.\n\n# How to zip a folder?\n* `ESzip` exposes function `zipFolder`, using which you can zip your source folder into destination zip file. Please note that `source` and `destination` are meant to be absolute paths, wherein `source` has to be an existing directory/file.\n* `zipFolder` requires 4 parameters, namely: `source`, `destination`, `successCallback`, and `errorCallback`. `source` and `destination` have to be absolute file URLs.\n\n# Example\n\u003cpre\u003e\n\u003ccode\u003e\n angular.module('starter.services',[])\n .factory('$zip', function($q)\n {\n   return {\n    zip: function(src, dest)\n    {\n        var deferred = $q.defer();\n        ESzip.zipFolder(src, dest, function(result)\n        {\n            if(result \u0026\u0026 result.success)//just to be sure\n                deferred.resolve(result);\n            else\n                deferred.reject(result);\n        },\n        function(err){\n            console.error(err);\n            deferred.reject(err);\n        })\n        return deferred.promise;\n    }\n   };\n });\n\u003c/code\u003e\n\u003c/pre\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feternalsayed%2Fcordova-plugin-eszip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feternalsayed%2Fcordova-plugin-eszip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feternalsayed%2Fcordova-plugin-eszip/lists"}