Skip to content

Instantly share code, notes, and snippets.

@swestcott
Created March 12, 2013 00:21
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 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