Browser Javascript read apk file and ipa file's name, logo, version. (Part of codes come from fir.im website)
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build
dist
src
.babelrc
.gitignore
README.md
index.html
package.json
webpack.config.js
yarn.lock

README.md

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/