Last active
March 6, 2018 09:58
-
-
Save juliensnz/22f6fd2e6682731bc1dfdede5b34053a to your computer and use it in GitHub Desktop.
Kata startup
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 stdin = process.openStdin(); | |
const promptMessage = (message = '') => process.stdout.write(`> ${message}`); | |
promptMessage(); | |
stdin.addListener('data', userInput => { | |
promptMessage(userInput); | |
promptMessage(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment