const reader = require('readline').createInterface({ input: process.stdin, output: process.stdout }); reader.on('line', line => { console.log(line.replace(/ao/g, 'ki')); });