roc/examples/nodejs-interop/wasm
Brian Teague 60c639b60e
Consolidate gitignore
Keep certain files with no file extension

Keep specific files with no file extension

Delete all gitignore files
2024-01-10 22:16:04 -05:00
..
platform Updated to use alignOf consistently 2023-12-10 08:45:20 +01:00
hello.js Add missing WASI "random_get" 2023-12-29 09:26:36 +01: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!