1.0.3 • Published 3 years ago
node-aab-parser v1.0.3
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 basedAPI
async aabParser(filePath): Response
| Parameter | Description | Required | Type |
|---|---|---|---|
| filePath | Absolute path of the file you want to parse | true | string |
Response object:
| Attribute | Description | Type |
|---|---|---|
| compiledSdkVersion | sdk version this was compiled to (api level on android studio ) | number |
| compiledSdkVersionCodename | commonly known android version | number |
| minSdkVersion | minimum android version that runs the app | number |
| targetSdkVersion | target android version for the app | number |
| versionCode | version number | number |
| versionName | version name | string |
| packageName | package name of your app | string |
| permissions | permissions your app has | string[] |
Contribution
It's still very barebones so any contribution is more than welcome.
Check the guidelines and the TODO