Install
With npm do:
npm install node-aapt --save
Example
Using a callback:
const packageInfo = ; ;
Using a promise:
const packageInfo = ; // something went wrong
In the console output you will see something like this:
packageName: 'com.example.app' versionCode: '12' versionName: '1.2.3'
API
packageInfo(path, callback)
path
Type: String
Path to your APK file.
callback
Type: function (err, data)
data
Type: Object
It contains the parsed data obtained from aapt tool.
License
MIT © Makarian Vladyslav