Web Assembly toolkit api for node javascript.
npm install wasmkit
npm run build
import { parseBinary, constants: { ValueType }}
const wasmModule = parseBinary(...);
wasmModule.functions[0].locals.push(ValueType.I32);
const modifiedWasmBinary = buildBinary(wasmModule);
WebAssembly.validate(modifiedWasmBinary);
Spec compliant as of Release 2.0 (2021-06-01)