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

    Class FlexibleBinaryObjectCSVParser<Header>

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

    This class implements BinaryObjectCSVParser interface and enforces object 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 FlexibleBinaryObjectCSVParser({
    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); // { name: 'Alice', age: '30' }
    }

    Type Parameters

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

      The type of the header row

    Hierarchy

    • BaseBinaryCSVParser<Header, "object">
      • FlexibleBinaryObjectCSVParser

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    decoder: TextDecoder

    Methods