@stendahls/arsc-parse

1.0.1 • Public • Published

ARSC parse

npm

This is just a wrapper around aapt2 to get information from a Resources.arsc in an apk.

It will download the latest version for your platform and store that in a binaries folder locally.

Requirements

  • Java

Since this module downloads the official jar, unpacks it and runs it, we need java.

Installation

npm i @stendahls/arsc-parse

Usage

const path = require( 'path' );

const arscParse = require( '@stendahls/arsc-parse' );

( async () => {
    let resources;

    try {
        resources = await arscParse.parse( path.join( __dirname, 'test1.apk' ) );
        console.log( resources );
    } catch ( parseError ) {
        console.error( parseError );
    }

    console.log( arscParse.getResourceByName( resources, 'string/app_name' ) );
} )();

Readme

Keywords

none

Package Sidebar

Install

npm i @stendahls/arsc-parse

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

6.53 kB

Total Files

4

Last publish

Collaborators

  • mujahidrashid
  • stoyan.yankov
  • sgnurf
  • kokarn
  • stendahls.it
  • andy.mcpherson
  • ullmark