Optional
options: ParseBinaryOptions<Header>Array of records
import { parseUint8ArrayStream } from 'web-csv-toolbox';
const csv = Uint8Array.from([
// ...
]);
const stream = new ReadableStream({
start(controller) {
controller.enqueue(csv);
controller.close();
},
});
const records = await parseUint8ArrayStream.toArray(stream);
console.log(records);
Parse CSV binary to array of records, ideal for smaller data sets.