How can I read one character from stdin synchronously?

Deliver in another way, what is node.js equivalent to C function getchar ? (who is waiting for input and when he receives it, he returns the character code of the letter, and subsequent calls get more characters from stdin)

I tried to find google, but none of the answers were synchronous.

+6
source share

Source: https://habr.com/ru/post/958757/


All Articles