Li-Fan Chen says to YSITD process.stdin.resume();//so the program will not close instantly process.nextTick(function() {