Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by tyushk

5 months ago

The WebAssembly reference interpreter [0] has a JS library that lets you do this.

    let wast = require("./wast.js");
    let binary = wast.WebAssemblyText.encode("(module)");

[0] https://github.com/WebAssembly/spec/tree/main/interpreter#ja...

0 comments

tyushk

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities