awesome-wasm icon indicating copy to clipboard operation
awesome-wasm copied to clipboard

Add Wasm2JS Compiler

Open HarikrishnanBalagopal opened this issue 1 year ago • 2 comments

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
  • [x] 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.

image image image image

HarikrishnanBalagopal avatar Jan 02 '24 09:01 HarikrishnanBalagopal

邮件我已收到,谢谢!!

Yee1023 avatar Jan 02 '24 09:01 Yee1023

THX  您的邮件我已收到!     我会尽量在空闲时间内给予答复!        keep in touchO(∩_∩)O

icecream0101 avatar Jan 02 '24 09:01 icecream0101