robin*

Implement exit feature

Showing 1 changed file with 3 additions and 0 deletions
......@@ -6,6 +6,9 @@ const rl = readline.createInterface({
});
rl.prompt();
rl.on('line', (l) => {
if(l.trim().toLowerCase() === 'exit') {
process.exit();
}
console.log(l);
rl.prompt();
});
......