roc/examples/nodejs-interop/wasm
Anton-4 a744536575
fix nodejs example
The naming mechanism has changed.
Instead of adding a test for this example now I'm going to make a good-first-issue to move this to the examples repo and add a test there. 

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-02-24 13:39:55 +01:00
..
platform Updated to use alignOf consistently 2023-12-10 08:45:20 +01:00
hello.js fix nodejs example 2024-02-24 13:39:55 +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!