Skip to content

Instantly share code, notes, and snippets.

@rosskukulinski
Created March 6, 2014 00:22
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 rosskukulinski/9379645 to your computer and use it in GitHub Desktop.
Save rosskukulinski/9379645 to your computer and use it in GitHub Desktop.
var fs = require('fs');
var JSONStream = require('JSONStream')
var file = fs.createReadStream('yakkity.log', {encoding: 'utf8'});
file.pipe(JSONStream.parse())
.on('data', function(data) {
console.log(data);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment