Response to parse
Optional
options: ParseOptions<Header>Stream of records
import { parseResponse } from 'web-csv-toolbox';
const response = await fetch('https://example.com/data.csv');
await parseResponse.toStream(response)
.pipeTo(
new WritableStream({
write(record) {
console.log(record);
},
}),
);
// Prints:
// { name: 'Alice', age: '42' }
// { name: 'Bob', age: '69' }
Parse CSV Response to stream of records.