@run-slicer/jasm
v0.4.6-aacebfa8b0
Published
A JavaScript port of the Jasm dis/assembler (https://github.com/jumanji144/Jasm).
Maintainers
Readme
jasm
A JavaScript port of the Jasm dis/assembler.
Example
const fs = require("fs");
const { disassemble } = require("./jasm.js"); // get it from the dist/ directory or jsDelivr
const data = fs.readFileSync("./your/package/HelloWorld.class"); // read a class file
console.log(await disassemble(data, {
indent: " ", // the string that should be used as the indent, defaults to 4 spaces
signature: "main([Ljava/lang/String;)V", // disassemble a single method denoted by the signature
}));Licensing
The supporting code for this project and the Jasm dis/assembler are licensed under the MIT License (supporting code, Jasm).
This project is not affiliated with, maintained or endorsed by the Jasm project in any way. Do NOT report issues with this project to the Jasm issue tracker.
