binaryen

WebAssembly compiler infrastructure and toolchain library

brewmacoslinux
Try with needOr install directly
Source

About

Compiler infrastructure and toolchain library for WebAssembly

Commands

wasm-optwasm-diswasm-aswasm2jswasm-ctor-evalwasm-reduce

Examples

Optimize a WebAssembly binary file$ wasm-opt -O3 input.wasm -o output.wasm
Disassemble a WebAssembly binary to text format$ wasm-dis input.wasm -o output.wat
Convert WebAssembly text format to binary$ wasm-as input.wat -o output.wasm