Node.js has an under-appreciated module in its standard library that is surprisingly useful. The Readline module does what it says on the box: it reads a line of input from the terminal. This can be used to ask the user a question or two, or to create a prompt at the bottom of the screen. In this tutorial, I intend to show off the capability of Readline and make a real-time CLI chatroom backed by
![Real-Time Chat With Node.js' Readline & Socket.io | Envato Tuts+](https://cdn-ak-scissors.b.st-hatena.com/image/square/effd6a5f7fd4d2053c2836efa3cb856f8afc0de7/height=288;version=1;width=512/https%3A%2F%2Fcms-assets.tutsplus.com%2Fuploads%2Fusers%2F304%2Fposts%2F20953%2Fpreview_image%2Fpreview.png)