Creates a new CSV entity.
OptionalasyncIterable: ByteBuffer | ByteStreamOptional byte stream or buffer to parse
Optionaloptions: CsvEntityOptionsConfiguration options for parsing
OptionalnewlineMakes this entity async iterable using the asynchronous stream.
An async generator that yields values of type S
Makes this entity iterable using the synchronous stream.
A generator that yields values of type S
Consumes the entity if it hasn't been consumed yet. This ensures the buffer advances to the end of this entity.
Asynchronously consumes the entity if it hasn't been consumed yet. This ensures the buffer advances to the end of this entity.
A promise that resolves when consumption is complete
ProtectedparseProtectedparseReads and parses the entire entity synchronously. Marks the entity as consumed after reading.
The parsed result of type T
Reads the cell value and transforms it using the provided function. Special handling for Boolean transformer: converts 'true'/'false' strings to boolean.
The type to transform the cell value into
Function to transform the cell string into type T
The transformed value of type T
Asynchronously reads the cell value and transforms it using the provided function. Special handling for Boolean transformer: converts 'true'/'false' strings to boolean.
The type to transform the cell value into
A promise that resolves to the transformed value of type T
Reads and parses the entire entity asynchronously. Marks the entity as consumed after reading.
A promise that resolves to the parsed result of type T
Returns a synchronous generator that yields chunks of type S. Marks the entity as consumed when iteration completes.
A generator that yields values of type S
Returns an asynchronous generator that yields chunks of type S. Handles buffering and automatically reads more data as needed.
An async generator that yields values of type S
Protectedstream
Represents a single CSV cell that can be read as a string or streamed in chunks. Handles quoted cells and escape sequences according to CSV standards.