I have a node module in npm called liner. See
http://github.com/mvolkmann/node-liner.
It reads from a file or a stream and emits each line by looking for newline
characters.

I just pushed a new version today that supports both old-style and
new-style streams.

With old-style streams, if there is a blank line in the source I can emit a
data event with an empty string.
With new-style streams, it seems I can't do that. Calling push with an
empty string doesn't allow listeners to read anything. So for now when I
want to push an empty string, I am pushing just a newline character instead.

Is there a better workaround for this?

-- 
R. Mark Volkmann
Object Computing, Inc.

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to