User input in REASON


I am attempting to obtain user input using REASON programming language. To compile ReasonML code to Javascript, I am using BuckleScript and executing it with “node”.

As per the documentation at, I installed bs-readline using “npm i --save” command. Additionally, I added bs-readline to bs-dependencies in my bsconfig.json file.
However, Readline is still not being recognized.
How can I solve this and receive user input?