/aaptjs

A node wraper for aapt

Primary LanguageJavaScript

aaptjs

A node wraper for aapt

Install

With npm do:

npm install aaptjs --save

Example

Using a callback:

const aaptjs = require('aaptjs');

aaptjs.list('/path/to/your/ExampleApp.apk', (err, data) => {
  if (err) {
    // something went wrong 
  } else {
    console.log(data);
  }
});

Using a promise:

const aaptjs = require('aaptjs');

aaptjs.list('/path/to/your/ExampleApp.apk')
  .then (data => {
    console.log(data)
  })
  .catch (err) {
    // something went wrong 
  }