node-aab-parser

A parser to get manifests of .aab files

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
node-aab-parser
211.0.3a year ago3 years agoMinified + gzip package size for node-aab-parser in KB

Readme

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
| 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
Buy Me A Coffee