1.0.8 • Published 4 years ago

reiko-parser v1.0.8

Weekly downloads
351
License
MIT
Repository
github
Last release
4 years ago

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

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

1.0.0

6 years ago