0.0.8 • Published 3 years ago

@xvanilla/consec v0.0.8

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

@xvanilla/consec

This package exposes a Go function called consec. It calls n number of JavaScript functions defined in the global scope.

Install

npm i -S @xvanilla/consec

Usage

import "@xvanilla/consec/static/wasm_exec";
import "@xvanilla/consec/static/instantiate";

function goodbye() {
  return "bye dude!";
}

function cool() {
  return "cool";
}

function add(x, y) {
  return x + y;
}


const funcs = [
    { name: "goodbye" },
    { name: "cool" },
    { name: "add", args: [1, 2] },
  ];
  
const res = consec(JSON.stringify(funcs));

console.log(res); // ['bye dude!', 'cool', '<number: 3>']
0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago