wasm2js

Takes a .wasm binary and wraps it inside a commonJS module that can be required in Node.js and the browser.

wasm2js
Parameters
wasmBuf (Buffer) a buffer of the .wasm code
Returns
String: the commonJS module code that wraps the wasm