web-csv-toolbox - v0.14.0
    Preparing search index...

    Class FlexibleBinaryArrayCSVParser<Header>

    Flexible CSV Parser for binary input with array output format. Combines TextDecoder and StringCSVParser to return records as arrays.

    This class implements BinaryArrayCSVParser interface and enforces array output format. For type-safe usage, use the createBinaryCSVParser() factory function.

    Accepts any BufferSource type (Uint8Array, ArrayBuffer, or other TypedArray views).

    This is a low-level API that accepts BinaryCSVProcessingOptions (excluding execution strategy). For high-level APIs with execution strategy support, use parseBinary() and related functions.

    const encoder = new TextEncoder();
    const parser = new FlexibleBinaryArrayCSVParser({
    header: ['name', 'age'] as const,
    charset: 'utf-8',
    decompression: 'gzip',
    signal: abortController.signal,
    // engine is NOT available (low-level API)
    });
    const binary = encoder.encode('Alice,30\nBob,25');
    for (const record of parser.parse(binary)) {
    console.log(record); // ['Alice', '30']
    }

    Type Parameters

    • Header extends ReadonlyArray<string> = readonly string[]

      The type of the header row

    Hierarchy

    • BaseBinaryCSVParser<Header, "array">
      • FlexibleBinaryArrayCSVParser

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    decoder: TextDecoder

    Methods