1.1.4 • Published 3 years ago

go-wasmer v1.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

go-wasmer

Run Go projects in nodejs and browser environments by way of WebAssembly.

Install

// pnpm
pnpm add go-wasmer
//yarn
yarn add go-wasmer
// npm
npm install go-wasmer

Usage

import { runWasm } from 'go-wasmer';
runWasm('./add.wasm', [1, 2])
  .then(res => console.log(res))
// 3

Note

Due to the nature of Go wasm having to be an executable program, it will output the results to the console by default. In a browser environment, go-wasmer gets its output by intercepting console.log, but it doesn't seem to be able to do this in a nodejs environment, and will also output the results to the console.

License

MIT

1.1.1

3 years ago

1.1.0

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago