ReadonlylexerReadonlyreadableThe readable read-only property of the TransformStream interface returns the ReadableStream instance controlled by this TransformStream.
ReadonlywritableThe writable read-only property of the TransformStream interface returns the WritableStream instance controlled by this TransformStream.
A transform stream that converts a stream of strings into a stream of tokens.
For most use cases, prefer the factory function createStringCSVLexerTransformer. Use this class directly only when you need a custom lexer implementation.
Param: lexer
A StringCSVLexer instance (required). Use createStringCSVLexer to create one.
Param: options
Stream-specific options (backpressureCheckInterval, etc.)
Param: writableStrategy
Strategy for the writable side (default:
{ highWaterMark: 65536, size: chunk => chunk.length })Param: readableStrategy
Strategy for the readable side (default:
{ highWaterMark: 1024, size: () => 1 })See
Choosing the Right API for guidance on selecting the appropriate API level.
Example: Custom lexer implementation