primea-wasm-container

0.9.7 • Public • Published

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 
})

SPONSERED BY

LICENSE

MPL-2.0

Readme

Keywords

Package Sidebar

Install

npm i primea-wasm-container

Weekly Downloads

3

Version

0.9.7

License

MPL-2.0

Unpacked Size

46.9 kB

Total Files

7

Last publish

Collaborators

  • floorlamp
  • null_radix