wasmkit
Web Assembly toolkit api for node javascript.
Installation
npm install wasmkit
Usage
import { parseBinary, constants: { ValueType }}
const wasmModule = parseBinary(...);
wasmModule.functions[0].locals.push(ValueType.I32);
const modifiedWasmBinary = buildBinary(wasmModule);
WebAssembly.validate(modifiedWasmBinary);
Changelog
Many changes to the api in comparison to wasm-parser
. Expect a full API document to be made soon