Created
November 12, 2015 21:33
-
-
Save mfowlewebs/89b0e2a706c0ae32e821 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.once("readable", function(){ | |
this.read(); | |
function on(thing){ | |
process.stdin.on(thing, function(){ | |
console.log(thing) | |
})}; | |
on("readable"); | |
on("data"); | |
on("end"); | |
on("close"); | |
on("error"); | |
this.end(); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment