Skip to content

Instantly share code, notes, and snippets.

@angristan
Created July 21, 2018 13:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angristan/8d7695deff88da78b149869d03215b8f to your computer and use it in GitHub Desktop.
Save angristan/8d7695deff88da78b149869d03215b8f to your computer and use it in GitHub Desktop.
const readline = require('readline');
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
});
const ask = () => {
rl.question('> ', res => {
console.log(res);
ask();
});
};
ask();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment