wat2wasm
Convert a file from the WebAssembly text format to the binary format. More information: <https://github.com/WebAssembly/wabt>.
Install
- All systems
-
curl cmd.cat/wat2wasm.sh
- Debian
-
apt-get install wabt
- Ubuntu
-
apt-get install wabt
- Arch Linux
-
pacman -S wabt
- Kali Linux
-
apt-get install wabt
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install wabt
- OS X
-
brew install wabt
- Dockerfile
- dockerfile.run/wat2wasm
Convert a file from the WebAssembly text format to the binary format. More information: <https://github.com/WebAssembly/wabt>.
-
Parse and check a file for errors:
wat2wasm file.wat
-
Write the output binary to a given file:
wat2wasm file.wat -o file.wasm
-
Display simplified representation of every byte:
wat2wasm -v file.wat
© tl;dr; authors and contributors