How to get command line input?

I just tried to write a very simple cli program using rescript and node.

How to read command line input like scanf/cin in cpp?

Ja can follow this tutorial Using stdout, stdin, and stderr in Node.js - LogRocket Blog

Probably you have to create bindings for the functions you will use. Here are some threads and the documentation can help you to write these.

There are already bindings for this rescript-nodejs/Process.res at 66a558001767c9dfd4d2a2fd6c7e56fd1530d60a · TheSpyder/rescript-nodejs · GitHub