roc/examples/nodejs-interop/wasm/README.md
Vladimir Zotov d6532bea18
Updated zig domain
Signed-off-by: Vladimir Zotov <azuresplash@gmail.com>
2023-12-09 17:39:59 +01:00

12 lines
255 B
Markdown

# NodeJS Interop
This is an example of calling Roc code from [Node.js](https://nodejs.org/en/).
You'll need to have [Zig](https://ziglang.org/) installed. Run this from the current directory:
```
roc build --target=wasm32
node hello.js
```
That's it!