JSPM

d8-termux

1.0.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 2
    • Score
      100M100P100Q40679F
    • License MIT

    Provides the d8 dex tool for use in Termux

    Package Exports

    • d8-termux

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (d8-termux) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    D8 Termux

    This package provides easy installation of the d8 android dex tool for use in Termux.

    Installation and use outside termux is discouraged and will not work.

    Install

    Make sure you have nodejs installed (pkg install nodejs) and run:

    $ npm install -g d8-termux

    Note: This is not an actual JavaScript package, we just use npm for easy installation but the resulting d8 executable is just a shell wrapper running the shipped d8.jar no JavaScript is ran in the process.

    Usage

    npm will automatically include a global symlink to the wrapper so you can just use the d8 command.

    $ d8 --version

    If it outputs the version you are good to go.,

    Use from code,

    If for some very strange reason you decide to install it locally then require()ing this package will just return the path to the dexed d8.jar

    > require("d8-termux");
    // => '/data/data/com.termux/files/usr/lib/node_modules/d8-termux/d8.jar'