I am trying to read data input from the keyboard in NodeJS, I would like to know how to do this in the way that java has its scanner or c++ has its cin something similar, I hope I make myself understood.
I am trying to read data input from the keyboard in NodeJS, I would like to know how to do this in the way that java has its scanner or c++ has its cin something similar, I hope I make myself understood.
Nodejs natively provides the function
openStdin()
to accept keyboard input, here is an example: