1.0.3 • Published 2 years ago

node-aab-parser v1.0.3

Weekly downloads
331
License
AGPL-3.0-or-later
Repository
github
Last release
2 years ago

node-aab-parser

A parser for aab manifests, inspired by node-apk-parser

Requirements

You must have java JDK 8+ on your machine NodeJS 12.18.0 (lower might versions work but unsupported)

Installation

npm install node-aab-parser or yarn add node-aab-parser

Usage

import { readManifest } from "node-aab-parser"; // or the require equivalent

await readManifest(filePath); // async / await

readManifest(filePath)
  .then(response => /* do something */);
  .catch(err => /* handle err */ ) // promise based

API

async aabParser(filePath): Response

ParameterDescriptionRequiredType
filePathAbsolute path of the file you want to parsetruestring

Response object:

AttributeDescriptionType
compiledSdkVersionsdk version this was compiled to (api level on android studio )number
compiledSdkVersionCodenamecommonly known android versionnumber
minSdkVersionminimum android version that runs the appnumber
targetSdkVersiontarget android version for the appnumber
versionCodeversion numbernumber
versionNameversion namestring
packageNamepackage name of your appstring
permissionspermissions your app hasstring[]

Contribution

It's still very barebones so any contribution is more than welcome.

Check the guidelines and the TODO