roc/examples/nodejs-interop/wasm
2023-06-02 15:23:05 -07:00
..
platform remove all definitions of roc_memcpy 2023-06-02 15:23:05 -07:00
.gitignore Split nodejs wasm and napi examples 2023-05-01 15:54:53 -04:00
hello.js Simplify wasm NodeJS example 2023-05-02 19:56:14 -04:00
main.roc Split nodejs wasm and napi examples 2023-05-01 15:54:53 -04:00
README.md Split nodejs wasm and napi examples 2023-05-01 15:54:53 -04: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!