Created
November 11, 2016 22:40
-
-
Save evilpacket/55c16b0e3d9edc0fe1a114cc16c03e68 to your computer and use it in GitHub Desktop.
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
var fs = require('fs'); | |
var JSONStream = require('jsonstream'); | |
var infile = fs.createReadStream(__dirname + '/' + process.argv[2]); | |
var stream = JSONStream.parse(['rows', true, 'doc']) | |
infile.pipe(stream); | |
stream.on('data', function(data) { | |
// data is the individual doc for the module. Contains all history, etc. | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment