Parse CSV string to array synchronously (WASM binding)
input
delimiter
max_buffer_size
source
Result containing JsValue with the JSON string representation of parsed CSV data.
Returns a JsError if parsing fails or input size exceeds limit, which will be thrown as a JavaScript error.
Parse CSV string to array synchronously (WASM binding)
Arguments
input- CSV string to parsedelimiter- Delimiter character (e.g., b',' for comma)max_buffer_size- Maximum allowed input size in bytessource- Optional source identifier for error reporting (e.g., filename). Pass empty string for None.Returns
Result containing JsValue with the JSON string representation of parsed CSV data.
Errors
Returns a JsError if parsing fails or input size exceeds limit, which will be thrown as a JavaScript error.