Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.
/ reiko-parser Public archive

Read iOS/Android pkg's (.apk/.ipa ) manifest info, for NodeJS or Web Browser.

License

Notifications You must be signed in to change notification settings

dos1in/reiko-parser

Repository files navigation

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

About

Read iOS/Android pkg's (.apk/.ipa ) manifest info, for NodeJS or Web Browser.

Resources

License

Stars

Watchers

Forks

Packages

No packages published