Skip to content

Instantly share code, notes, and snippets.

View CodeF53's full-sized avatar
:atom:

Cassie CodeF53

:atom:
View GitHub Profile
@mochienya
mochienya / index.js
Last active November 21, 2025 00:10
js string from wasm
import { readFile } from 'node:fs/promises'
const wasm = await WebAssembly.instantiate(await readFile('main.wasm'), {}, { builtins: [ "js-string" ] })
.then(n => n.instance.exports)
console.log(wasm.hello())