Skip to content

Disassembler of Webassembly binaries

License

Notifications You must be signed in to change notification settings

JoseFMP/wasm-disassembler

Repository files navigation

🙊 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.

About

Disassembler of Webassembly binaries

Resources

License

Stars

Watchers

Forks

Packages

No packages published