roc/examples/nodejs-interop/wasm
Vladimir Zotov d6532bea18
Updated zig domain
Signed-off-by: Vladimir Zotov <azuresplash@gmail.com>
2023-12-09 17:39:59 +01:00
..
platform update zig and rust platforms to have correct roc_panic and roc_dbg 2023-11-29 21:49:34 -08:00
.gitignore Split nodejs wasm and napi examples 2023-05-01 15:54:53 -04:00
hello.js update zig and rust platforms to have correct roc_panic and roc_dbg 2023-11-29 21:49:34 -08:00
main.roc Split nodejs wasm and napi examples 2023-05-01 15:54:53 -04: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!