Description
Please add https://github.com/HarikrishnanBalagopal/wasm2js
This is a compiler from takes in a WASM binary and generates Javascript code.
Published here https://www.npmjs.com/package/@haribala/wasm2js
- Bug
- Improvement
- Other
Description
This library parses WASM binaries and compiles it to valid Javascript instruction by instruction.
This makes it different from similarly named packages like https://github.com/thlorenz/wasm2js
which only embed the WASM binary as is in a JS module.
The library can be used for porting any app in any language that compiles to WASM, to valid Javascript source code.
It includes various demos that you can try out https://github.com/HarikrishnanBalagopal/wasm2js/tree/main/src/demo
Demos taken from https://github.com/binji/raw-wasm and adapted to the library.




Activity