Skip to content

Instantly share code, notes, and snippets.

@idlecool
Created February 20, 2014 02:15
Show Gist options
  • Select an option

  • Save idlecool/9105804 to your computer and use it in GitHub Desktop.

Select an option

Save idlecool/9105804 to your computer and use it in GitHub Desktop.
function processData(input) {
//Enter your code here
}
process.stdin.resume();
process.stdin.setEncoding("ascii");
_input = "";
process.stdin.on("data", function (input) {
_input += input;
});
process.stdin.on("end", function () {
processData(_input);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment