reiko-parser
v1.0.8
Published
Read iOS/Android pkg's(.apk/.ipa ) manifest info, for NodeJS.
Downloads
170
Readme
reiko-parser
Read iOS/Android package's (.apk/.ipa ) manifest info, for NodeJS.
Introduction
For .apk
, parse the AndroidManifest.xml
and resources.arsc
files, read all values listed in AndroidManifest.xml(both primitive and reference type), also you can get and show the icon of the apk file directly from the parsed result.
For .ipa
, parse the info.plist
and embedded.mobileprovision
files, read all basic information in info.plist file, including the icon of the ipa file(already handled the crushed pngs).
Acknowledgements
This project is based on plist.js, isomorphic-pkg-reader & adbkit-apkreader.
Install
npm install --save reiko-parser
Usage
const PkgReader = require('reiko-parser');
// for apk
const reader = new PkgReader(filePath, 'apk', { withIcon: true });
reader.parse((err, pkgInfo) => {
if (err) {
console.error(err);
} else {
console.log(pkgInfo); // pkgInfo.icon is encoded to base64
}
});
// for ipa
const reader = new PkgReader(filePath, 'ipa', { withIcon: false });
reader.parse((err, pkgInfo) => {
if (err) {
console.error(err);
} else {
console.log(pkgInfo);
}
});