dominictarr / split

MIT License
347 stars 39 forks source link

No 'end' event? #12

Closed nylen closed 9 years ago

nylen commented 9 years ago

Does split not emit an end event when all lines have been processed?

dominictarr commented 9 years ago

yes of course it does, but not if your upstream input doesn't.

nylen commented 9 years ago

My upstream input is ultimately through :) how to get it to emit end?

dominictarr commented 9 years ago

like this:

var stream = through()
stream.end()
//OR
stream.queue(null)
nylen commented 9 years ago

:+1: thanks!