While I find node.js quite entertaining to use, I am still a beginner and need a lot of help from the documentation. However, lately, the problems I tried to solve are getting more complex, and so are the answers. Often, I find the explanations I need on this site, but the problem is that I cannot verify then on the documentation side.
A clear example: I wanted to set the process.stdin to read the keytrokes of the process. The question
nodejs how to read keystrokes from stdin
was very helpful and did what I needed, but something buggs me: in the node.js documentation, there is no mention that a stdin stream emits 'keypress' events. Am I missing a huge body of knowledge about node.js? If this site did not exist, how would one learn the stream emits 'keypress' events? Is the documentation just that bad?