jahewson/node-byline — pull request #5 by nanha (2012-11-05 07:42:54+00:00)
Title: After pipe.(writeStream) , writeStream data is Only One Line

byline = require 'byline'
fs = require 'fs'

src = fs.createReadStream 'data/inputline.txt'
dest = fs.createWriteStream 'data/outputline.txt'

src = byline.createStream src

#
# not buffer !!
# src.pipe(dest)
# => dest contents is only one line !!
#
src.on 'data', (data)->
console.log data.toString()

src.pipe dest