Created
April 18, 2015 04:31
-
-
Save ieatkillerbees/f6eea1c26316741ab2dd 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
| var readline = require('readline'); | |
| var rl = readline.createInterface({ | |
| input: process.stdin, | |
| output: process.stdout, | |
| terminal: false | |
| }); | |
| rl.on('line', function (line) { | |
| var jsonstuff = JSON.parse(line); | |
| // do stuff | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment