Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

go-wasm

0.0.3 • Public • Published

Go WebAssembly Lib

How To Use

const {Go} = require('go-wasm')
 
const start = async function start() {
    const go = new Go()
    const result = await WebAssembly.instantiate(fs.readFileSync('./lib.wasm'), go.importObject)
    await go.run(result.instance)
}
 
start();

Keywords

none

install

npm i go-wasm

Downloadsweekly downloads

20

version

0.0.3

license

MIT

last publish

collaborators

  • avatar
Report a vulnerability