Created
July 8, 2013 19:34
-
-
Save soldair/5951789 to your computer and use it in GitHub Desktop.
process large file with node
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.pipe(require('line-stream')()).pipe(require('through')(function(line){ | |
// do analysis on a line | |
})).pipe(process.stdout) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment