• Preparing search index...
  • The search index is not available
web-csv-toolbox
  • web-csv-toolbox
  • parseBinary
  • toArray

Function toArray

  • toArray<Header>(bytes, options?): Promise<CSVRecord<Header>[]>
  • Parse a binary from an Uint8Array to an array of records.

    Type Parameters

    • Header extends readonly string[]

    Parameters

    • bytes: Uint8Array | ArrayBuffer

      CSV bytes to parse.

    • Optional options: ParseBinaryOptions<Header>

      Parsing options

    Returns Promise<CSVRecord<Header>[]>

    Array of records

    Example

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

    const csv = Uint8Array.from([
    // ...
    ]);

    const records = await parseUint8Array.toArray(csv);
    • Defined in src/parseBinary.ts:58

Settings

Member Visibility

Theme

web-csv-toolbox
  • Loading...

Generated using TypeDoc