How can I read command line arguments (not stdin) ...
# webassembly
d
How can I read command line arguments (not stdin) on wasmWasi nodejs application? Thanks in advance.
d
That’s great, I’ll have a look
I managed to do it for WasmJS
e
yes you can just use the js api in wasmJs, I've done that too. https://github.com/ephemient/aoc2024/blob/main/kt/aoc2024-exe/src/wasmJsMain/kotlin/com/github/ephemient/aoc2024/exe/WasmJsMain.kt but that's different from wasmWasi
d
I tried your version but I didn’t work on my code, dunno why
I have both wasi and js, for wasi I used your version