Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.32 KB

README.md

File metadata and controls

31 lines (22 loc) · 1.32 KB

🙊 This is in alpha state

Build status

Alpha stage

Quick information

This is an NPM library that is capable to disassembly webassemblies binaries. It is based on typescript and is targeting to be high-performance and minimalistic in the amount of dependencies.

To install it just issue:

npm install wasm-disassembler

To disassemble a WASM binary:

import { WasmMemoryProvider, WasmDisassembler } from 'wasm-disassembler';

const binaryProvider = new WasmMemoryProvider(binary);
const disassembler = new WasmDisassembler(binaryProvider);
const disassembly = await disassembler.Disassemble();

where binary is a Uint8Array type. Note that you can implement your own binary provider besides the already existing WasmMemoryProvider. For that purpose you just need to implement the WasmBinaryProvider interface.

Feedback

Did you find any bugs? Do you want a specific feature to be implemented for your organization? Drop me a line.