Skip to content

Instantly share code, notes, and snippets.

@soldair
Created July 8, 2013 19:34
Show Gist options
  • Save soldair/5951789 to your computer and use it in GitHub Desktop.
Save soldair/5951789 to your computer and use it in GitHub Desktop.
process large file with node
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