Skip to content

Files

Latest commit

 

History

History
22 lines (16 loc) · 549 Bytes

usage.md

File metadata and controls

22 lines (16 loc) · 549 Bytes
title id
Usage
usage

CDN

You can import https://bundle.run/webassemblyjs and the webassemblyjs object will be accessible.

yarn

yarn add @webassemblyjs/cli

Command line interface

  • wasmdump FILENAME: decodes a WASM binary and dumps its content
  • wasmast FILENAME: prints the AST of the WASM binary.
  • wasmrun FILENAME [ENTRYPOINT]: runs the WASM binary (uses the start section by default as entrypoint).
  • wasm2wast FILENAME: prints the binary as WAST.
  • wastast FILENAME: prints the WAST as an AST.