componentize-qjs-cli 0.4.1

CLI for converting JavaScript to WebAssembly components using QuickJS
Documentation
1
2
3
4
5
6
7
8
9
10
11
import { offset } from "./config";
import { add } from "./lib/math.js";
import { prefix } from "local-greeter";

export function addWithOffset(a, b) {
    return add(a, b) + offset;
}

export function greet(name) {
    return `${prefix}, ${name}!`;
}