Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 1.15 KB

README.md

File metadata and controls

45 lines (34 loc) · 1.15 KB

SYNOPSIS

NPM Package Build Status Coverage Status

js-standard-style

INSTALL

npm install primea-annotations

USAGE

const primeaAnnotations = require('primea-annotations')
const annotation = {
  'types': [{
    'form': 'func',
    'params': [
      'func'
    ]
  }],
  'typeMap': [{
    'func': 0,
    'type': 0
  }],
  'persist': [{
    'form': 'global'
    'index': 0,
    'type': 'data'
  }]
}

const injectWasmBinary = primeaAnnotations.encodeAndInject(annotation, wasmBinary)

API

./docs/

LICENSE

MPL-2.0