open-index/open-npm huggingface dataset:
npm package: @fl0rek/lumina-node-wasm
Description: Browser compatibility layer for the Lumina node
Latest version: 0.2.0

# Lumina node wasm

A compatibility layer for the [`Lumina`](https://github.com/eigerco/lumina) node to
work within a browser environment and be operable with javascript.

```javascript
import init, { Node, NodeConfig, Network } from "/wasm/lumina_node_wasm.js";

await init();

const config = NodeConfig.default(Network.Mainnet);
const node = await new Node(config);

await node.wait_connected();
await node.request_head_header();
```