wq

A simple cli tool for turning web assembly into json. This is meant to be used with other tools like jq

cargo install wq

Usage

```bash

basic print

wq test.wasm

write to file

wq test.wasm test.json

for pipe chaining

cat simplest.wasm | wq json {"sections":[{"sectiontype":"type","content":{"types":[{"valuetype":"function","content":{"inputs":[],"outputs":["I32"]}}]}},{"sectiontype":"function","content":{"functiontypes":[0]}},{"sectiontype":"memory","content":{"memories":[{"minpages":2,"maxpages":10}]}},{"sectiontype":"export","content":{"exports":[{"exporttype":"function","content":{"name":"main","index":0}},{"exporttype":"memory","content":{"name":"memory","index":0}}]}},{"sectiontype":"code","content":{"codeblocks":[{"locals":[],"code_expression":[{"op":"I32Const","params":42}]}]}}]} ```