import * as readline from 'node:readline';
import { stdin, stdout } from 'process';
const rl = readline.createInterface({
input: stdin,
output: stdout
});
rl.question("What is your name? ", function (answer: string) {
console.log(`Oh, so your name is ${answer}`);
console.log("Closing the interface");
rl.close();
});