Noncollinear Perpendicular Microcrystalline

npm

Check out our latest tech talk, "JavaScript Supply Chain Security" presented by VP of Security, Adam Baldwin.Watch it here »

js-app-parser

1.0.1 • Public • Published

js-app-parser

Features

  • Getting apk meta info.
  • Getting ipa meta info.

Dependency

Install

npm install --save js-app-parser

Usage

Node

const appParser = require('js-app-parser');
const fs = require('fs');
 
const buffer = fs.readFileSync('your apk or ipa file path').buffer;
appParser.Application.loadAsync(buffer).then(application => {
    // get application meta info
}).catch(error => {
    // do when error
});

Browser

<input id="fileInput" type="file" onchange="onFileSelect()" />
function onFileSelect() {
    const fileInput = document.getElementById('fileInput');
    appParser.Application.loadAsync(fileInput.files[0]).then(application => {
         // get application meta info
    });
}

Application Class

    class Application {
        versionCode: string; // application version code
        versionName: string; // application version name
        package: string; // android app id or ios build identifier
        icon?: string; // application icon path
        iconSteam?: Uint8Array; // application icon file buffer
        name: string; // application name
        platform: string; // platform 'android' or 'ios'
    }

Keywords

install

npm i js-app-parser

Downloadsweekly downloads

3

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability