roc/examples/nodejs-interop/wasm
2024-08-04 21:12:09 +10:00
..
platform fix zig hosts ensure they export main 2024-08-04 21:12:09 +10:00
hello.js fix nodejs example 2024-02-24 13:39:55 +01:00
main.roc New app header syntax 2024-05-01 10:49:01 -03:00
README.md Updated zig domain 2023-12-09 17:39:59 +01:00

NodeJS Interop

This is an example of calling Roc code from Node.js.

You'll need to have Zig installed. Run this from the current directory:

roc build --target=wasm32
node hello.js

That's it!