Created
July 21, 2018 13:30
-
-
Save angristan/8d7695deff88da78b149869d03215b8f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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