Skip to content

wasmkit/wasmkit-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wasmkit

Web Assembly toolkit api for node javascript.

Installation

npm install wasmkit

Building from Source

npm run build

Usage

import { parseBinary, constants: { ValueType }}

const wasmModule = parseBinary(...);

wasmModule.functions[0].locals.push(ValueType.I32);

const modifiedWasmBinary = buildBinary(wasmModule);

WebAssembly.validate(modifiedWasmBinary);

Spec Compliancy

Spec compliant as of Release 2.0 (2021-06-01)

Looking for earlier versions?