• Parse CSV Response to array of records.

    Type Parameters

    • Header extends readonly string[]

    Parameters

    Returns Promise<CSVRecord<Header>[]>

    Array of records

    Example: Parsing CSV Response

    import { parseResponse } from 'web-csv-toolbox';

    const response = await fetch('https://example.com/data.csv');

    const records = await parseResponse.toArray(response);
    console.log(records);