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();

Readme

Keywords

none

Package Sidebar

Install

npm i go-wasm

Weekly Downloads

360

Version

0.0.3

License

MIT

Unpacked Size

16.1 kB

Total Files

7

Last publish

Collaborators

  • alphatr