watever is a bundler and transpiler for WebAssembly text format (WAT) modules, enabling seamless integration with JavaScript. Version 0.5.2, active development. It statically links WAT modules, tree-shakes bytecode, and generates JS wrappers with ESM exports. Unlike other WASM tools, watever focuses on WAT-first development, allowing complex JS imports (e.g., strings, async functions) directly from WAT without glue code.
npm install wateverNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a WAT module with string import, bundles it, and calls the exported async function from JS.
Always use await when calling exported functions from JS.
Use 'console.log#lift' instead of 'console.log' for lifted functions; see docs.
Use Node.js for production; check Deno support status before using.
Ensure string literals in WAT data sections are UTF-8 encoded, or use escape sequences for non-ASCII.
Run 'npm install watever' locally and use 'npx watever'.
Use 'await logNumber();' instead of 'logNumber();'.
Use 'import' statement instead of require(), or rename file to .mjs.