roc/examples/nodejs-interop/wasm
Agus Zubiaga 8dedd9f03c
New app header syntax
Implements the new app header syntax as discussed in Zulip [1].

    app [main] {
	cli: platform "../platform/main.roc",
	json: "../json/main.roc"
    }

Old headers still parse and are automatically upgraded to the new
syntax by the formatter.

[1] https://roc.zulipchat.com/#narrow/stream/304641-ideas/topic/Fewer.2Fdifferent.20keywords.20in.20the.20file.20header/near/418444862
2024-05-01 10:49:01 -03: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 New app header syntax 2024-05-01 10:49:01 -03: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!