Class TextDelimiterStream
Hierarchy
- TransformStream<string, string>
- TextDelimiterStream
Index
Constructors
Properties
Constructors
constructor
- new
Text (delimiter, options?): TextDelimiterStreamDelimiter Stream Constructs a new instance.
Parameters
- delimiter: string
A delimiter to split the stream by.
Optionaloptions: DelimiterStreamOptionsOptions for the stream.
Returns TextDelimiterStream
- delimiter: string
Transform a stream
stringinto a stream where each chunk is divided by a given delimiter.If you are working with a stream of
Uint8Array, consider usingDelimiterStream.If you want to split by a newline, consider using
TextLineStream.Example: Comma-separated values
Example: Semicolon-separated values with suffix disposition