commands.sh

wat2wasm

all

Convert a file from the WebAssembly text format to the binary format.

More info →

Options (2)

-o, --outputboolean

Write the output binary to a given file

Example: wat2wasm {{file.wat}} {{[-o|--output]}} {{file.wasm}}
-v, --verboseboolean

Display simplified representation of every byte

Example: wat2wasm {{[-v|--verbose]}} {{file.wat}}

Examples (3)

Parse and check a file for errors

wat2wasm file.wat

Write the output binary to a given file

wat2wasm file.wat [-o|--output] file.wasm

Display simplified representation of every byte

wat2wasm [-v|--verbose] file.wat
made by @shridhargupta | data from tldr-pages