Construct a LineTransformer
the encoding of the input stream (defaults to "utf-8").
The encoding of the contents of the stream.
The remaining part of the incoming stream that doesn't have a new line assoaciated with it yet.
Flush
When the incoming stream is done, this method is called to perform any final logic before the stream is closed. The remaining overflow of the stream is pushed
Transform
The main logic associated with transforming the input stream. The input chunk is decoded, split up by new lines, then each line is pushed out using the default Buffer encoding.
data chunk from the input stream
The callback from transforming the stream to notify the caller when transforming the chunk is done
Event emitter The defined events on documents including:
Generated using TypeDoc
Transform Stream that splits the stream by new lines
An extension of a Node Transform Stream that decodes the incoming stream using a given encoding and emits the contents line by line.