npm

Need private packages and team management tools?Check out npm Orgs. »

reiko-parser

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

install

npm i reiko-parser

Downloadsweekly downloads

421

version

1.0.7

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability