3 ms·
Here's a Node package: https://www.npmjs.com/package/wasm https://www.npmjs.com/package/wasm
by m12k 10y ago
Here's a Node package: https://www.npmjs.com/package/wasm https://www.npmjs.com/package/wasm
- binji 10y agoThat appears to use https://github.com/WebAssembly/polyfill-prototype-1 https://github.com/WebAssembly/polyfill-prototype-1, which does not match the current binary format at all. The current way to do the equivalent would be to use Binaryen's asm2wasm tool. https://github.com/WebAssembly/binaryen https://github.com/WebAssembly/binaryen
- singularity2001 10y agoThat package is highly deprecated and unnecessary: You can now simply do node --expose-wasm > buffer=fs.readFileSync('test.wasm') > WebAssembly.compile(buffer)