Class TextLineStream
Hierarchy
- TransformStream<string, string>
- TextLineStream
Index
Constructors
Properties
Constructors
constructor
- new
Text (options?): TextLineStreamLine Stream Constructs a new instance.
Parameters
- options: TextLineStreamOptions = ...
Options for the stream.
Returns TextLineStream
- options: TextLineStreamOptions = ...
Transform a stream into a stream where each chunk is divided by a newline, be it
\nor\r\n.\rcan be enabled via theallowCRoption.If you want to split by a custom delimiter, consider using
TextDelimiterStream.Example: JSON Lines
Example: Allow splitting by `\r`