JavaScript

import readline from "node:readline/promises";
 
const rl = readline.createInterface({
  input: process.stdin,
  output: process.stdout,
});
 
async function main() {
  const result = await rl.question("New user name: ");
 
  rl.close();
  return;
}
main()