Skip to content

Instantly share code, notes, and snippets.

/lr.js Secret

Created August 4, 2015 08:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/c4c2761109db01277581 to your computer and use it in GitHub Desktop.
Save anonymous/c4c2761109db01277581 to your computer and use it in GitHub Desktop.
var lineReader = readline.createInterface({
input: process.stdin,
terminal: false
});
lineReader.on('line', function(line) {
if (line) {
// ...
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment