Skip to content

primea/js-primea-annotations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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