reiko-parser

1.0.8 • Public • Published

reiko-parser

NPM version NPM downloads

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);
  }
});

Package Sidebar

Install

npm i reiko-parser

Weekly Downloads

40

Version

1.0.8

License

MIT

Unpacked Size

227 kB

Total Files

27

Last publish

Collaborators

  • doslin