New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

js-app-parser

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-app-parser

application package parser with javascript, for decoding android apk or ios ipa, getting application meta info.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

js-app-parser

Features

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

Dependency

  • jszip
  • pako
  • js-crc32
  • text-encoding

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

apk

FAQs

Package last updated on 20 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts