@litecase/aapt-js
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

aapt-js

aapt-js is cloned from shenzhim's aaptjs project.

aapt-js is a node wraper for aapt. You can get information about .apk file which you provide, eg: bit version(32-bit or 64-bit), version and so on.

Install

npm install @litecase/aapt-js --save

Example

const { list }  = require('aapt-js')

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

Some Methods

  • list(apkfilePath: string, callback?: (err: Error|null, data: string) => void): Promise

  • dump(what: string, apkfilePath: string, callback?: (err: Error|null, data: string) => void): Promise

  • packageCmd(command: string, callback?: (err: Error|null, data: string) => void): Promise

  • remove(apkfilePath: string, files: string|string[], callback?: (err: Error|null, data: string) => void): Promise

  • add(apkfilePath: string, files: string|string[], callback?: (err: Error|null, data: string) => void): Promise

  • crunch(resource: string|string[], outputFolder: string, callback?: (err: Error|null, data: string) => void): Promise

  • singleCrunch(inputFile: string, outputfile: string, callback?: (err: Error|null, data: string) => void): Promise

  • getVersion(callback?: (err: Error|null, data: string) => void): Promise

  • getBit(callback?: (err: Error|null, data: string) => void): Promise

Readme

Keywords

Package Sidebar

Install

npm i @litecase/aapt-js

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

6.59 MB

Total Files

7

Last publish

Collaborators

  • litecase