Parse CSV Request to array of records.
Optional
Array of records
import { parseRequest } from 'web-csv-toolbox';const request = new Request('https://example.com', { method: 'POST', headers: { 'Content-Type': 'text/csv' }, body: 'name,age\nAlice,42\nBob,69'});const records = await parseRequest.toArray(request);console.log(records); Copy
import { parseRequest } from 'web-csv-toolbox';const request = new Request('https://example.com', { method: 'POST', headers: { 'Content-Type': 'text/csv' }, body: 'name,age\nAlice,42\nBob,69'});const records = await parseRequest.toArray(request);console.log(records);
Parse CSV Request to array of records.