0.0.8 • Published 2 years ago

@xvanilla/consec v0.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 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

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago