mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
12 lines
255 B
Markdown
12 lines
255 B
Markdown
# NodeJS Interop
|
|
|
|
This is an example of calling Roc code from [Node.js](https://nodejs.org/en/).
|
|
|
|
You'll need to have [Zig](https://zig-lang.org) installed. Run this from the current directory:
|
|
|
|
```
|
|
roc build --target=wasm32
|
|
node hello.js
|
|
```
|
|
|
|
That's it!
|