Last active
March 10, 2016 19:53
-
-
Save ajcrites/96ce04dabc03dc796086 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
const fs = require("fs"); | |
const JSONStream = require("JSONStream"); | |
const parser = JSONStream.parse('*'); | |
const stream = fs.createReadStream("./bl"); | |
stream.pipe(parser); | |
parser.on("data", data => { | |
let len = Buffer.byteLength(data.result); | |
if (len > 500000) { | |
console.log(data.url); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment