git ssb

0+

wanderer🌟 / js-primea-wasm-container



Tree: 25415d42ab6ba415a5026b2cdb0fc33b33287c7a

Files: 25415d42ab6ba415a5026b2cdb0fc33b33287c7a / README.md

1254 bytesRaw

NPM Package
Build Status
Coverage Status

js-standard-style

SYNOPSIS

This implements a wasm container for the ewasm-kernel

INSTALL

npm install primea-wasm-container

USAGE

const WasmContainer = require('primea-wasm-container')

// this class with get instantiated when a new wasm container instance is created
// its methods with be exposed to the wasm binary as `imports`
class HelloWorld {
  test () {
    console.log('hello world!')
  }
}

// regester the container with the a hypervisor instance
hypervisor.registerContainer(WasmContainer, {
  env: HelloWorld 
})

LICENSE

MPL-2.0)

Built with git-ssb-web