This commit is contained in:
Raven Scott
2026-02-19 18:15:15 -05:00
parent 44fd48c9cc
commit 41f9b6e2e2
5 changed files with 115 additions and 47 deletions
+3 -1
View File
@@ -10,7 +10,7 @@ npm i wasm-tools
## CLI
- `wasm-to-js`
- `wasm-to-js` (options: `--format`, `--platform`, `--sync`, `--minify`)
- `wasm-to-wat`
- `wat-to-js`
- `wat-to-wasm`
@@ -38,6 +38,7 @@ wat-to-wasm input.wat output.wasm
## Best Practices
- Validate output with wasm runtimes after conversion.
- Use `--sync` only when synchronous loading is required.
## Performance
@@ -54,6 +55,7 @@ wat-to-wasm input.wat output.wasm
## Integration
- Useful in build pipelines and bundlers.
- Pair with `esbuild` for JS bundling.
## License