UNPKG

microvium

Version:

A compact, embeddable scripting engine for microcontrollers for executing small scripts written in a subset of JavaScript.

13 lines (10 loc) 176 B
// script.js const print = vmImport(1); vmExport(1, add); vmExport(2, sayHello); function add(a, b) { return a + b; } function sayHello() { print('Hello'); }