Taking input

Node.js provides a few ways to take inputs from user, including the built-in process.stdin and readline module. There are also several third party packages like prompts and Enquirer built on top of readline that provide an easy to use and intuitive interface.