wasm-rquickjs-cli 0.0.13

Tool for wrapping JavaScript modules as WebAssembly components using the QuickJS engine
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function helloImpl(name) {
    console.log(`hello called with ${name}`);
    return `Hello, ${name}! (${this.something})`;
}

async function asyncHelloImpl(name) {
    console.log(`hello called with ${name}`);
    return `Hello, ${name}! (${this.something})`;
}

export const something = 123;

export const hello = helloImpl;

export const asyncHello = asyncHelloImpl;