node-readline-loop Code snippet for node.js .readline to be executed in a loop To execute the code type in node app/commandLine.js. Note: It is assumed that you have node.js 4.2.1 or higher installed in your machine.