Created
October 8, 2018 08:13
-
-
Save Franckapik/640d01c7bed25e33afbc90251d23aa2d 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
process.stdin.on('readable', function() { | |
var letter = process.stdin.read(); | |
if (letter === 'd') { | |
process.stdout.write('data: ' + letter); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment