Skip to content

satrong/apk-ipa-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Browser Javascript read apk file and ipa file's name, logo, version.

Part of codes come from https://fir.im .

Usage

var reader = new APK_IPA_READER({
    callback: function(apps){
        // do something after get file info
    }, 
    workerScriptsPath: './'
});
reader.byInput(fileInputDom);
// or
// reader.byDrag(dragDom);
reader.removeEvent(); // remove event listener
  • callback: The callback function, will get two arguments: error(if ok it will be null) and fileinfo(i.e. name, logo, version)
  • workerScriptsPath: set zip.workerScriptsPath, you can look for http://gildas-lormeau.github.io/zip.js/
  • fileInputDom: The file input element, i.e. document.getElementById('fileInputId')

Demo

https://satrong.github.io/apk-ipa-reader/

About

Browser Javascript read apk file and ipa file's name, logo, version. (Part of codes come from fir.im website)

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published