Skip to content

Add Wasm2JS Compiler #216

Open
Open
@HarikrishnanBalagopal

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.

image image image image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions