How can I get rl.question to return the value that the user inputs, my code looks like this:
const readline = require('readline');
const { stdin: input, stdout: output } = require('process');
const rl = readline.createInterface({ input, output });
console.log(rl.question("hello?",(answer) => {return answer}))
I know there are probably better modules to use if I want a python-style input function, but 'prompts' seems to have the same problem.