Skip to content

v1.1 `wasmkit`

Latest
Compare
Choose a tag to compare
@awt-256 awt-256 released this 22 Dec 00:04
· 7 commits to main since this release

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