You can now simply do
node --expose-wasm
> buffer=fs.readFileSync('test.wasm')
> WebAssembly.compile(buffer)
The current way to do the equivalent would be to use Binaryen's asm2wasm tool.
https://github.com/WebAssembly/binaryen
Reply on news.ycombinator.com