https://github.com/shenzhim/aaptjs
A node wraper for aapt
https://github.com/shenzhim/aaptjs
aapt nodejs
Last synced: 11 months ago
JSON representation
A node wraper for aapt
- Host: GitHub
- URL: https://github.com/shenzhim/aaptjs
- Owner: shenzhim
- Created: 2018-05-07T03:45:33.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-10-07T07:44:29.000Z (over 3 years ago)
- Last Synced: 2024-11-08T16:48:21.698Z (over 1 year ago)
- Topics: aapt, nodejs
- Language: JavaScript
- Homepage:
- Size: 3.35 MB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# aaptjs
A node wraper for aapt
# Install
With [npm](https://npmjs.org/package/node-aapt) do:
```
npm install aaptjs --save
```
## Example
Using a callback:
```js
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:
```js
const aaptjs = require('aaptjs');
aaptjs.list('/path/to/your/ExampleApp.apk')
.then (data => {
console.log(data)
})
.catch (err) {
// something went wrong
}
```