Skip to content

Instantly share code, notes, and snippets.

@swestcott
Created March 12, 2013 00:21
Show Gist options
  • Save swestcott/5139194 to your computer and use it in GitHub Desktop.
Save swestcott/5139194 to your computer and use it in GitHub Desktop.
var lazy = require("lazy"),
fs = require("fs");
new lazy(fs.createReadStream('./data.txt'))
.lines
.forEach(function(line) {
console.log(line.toString());
}
);
@swestcott
Copy link
Author

Getting no console output from the above code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment