I want to read some lines from a large csv file. A quick search here on SO pointed me to the 'lazy' module. Here's my attempt:
items = []
stream = fs.createReadStream src
lazy(stream)
.lines
.skip(1)
.take(5)
.forEach((line)->
items.push line.toString())
.on('end', ->
console.log items)
But it doesn't print anything. What am I missing?