componentize-qjs-cli 0.1.0

CLI for converting JavaScript to WebAssembly components using QuickJS
Documentation
1
2
3
4
5
6
7
8
// Use the imported math interface
// The import will be available as "local:test/math"
function doubleAdd(a, b) {
    // Access the math import interface
    const math = globalThis["local:test/math"];
    const sum = math.add(a, b);
    return math.multiply(sum, 2);
}