lumina-node-wasm 1.0.0

Browser compatibility layer for the Lumina node
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
import { NodeClient } from "lumina-node-wasm";

/**
* Spawn a worker running lumina node and get the `NodeClient` connected to it.
*/
export async function spawnNode() {
  let worker = new Worker(new URL("worker.js", import.meta.url), { type: "module" });
  let client = await new NodeClient(worker);
  return client;
}

export * from "lumina-node-wasm";