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

    Interface StringArrayCSVParser<Header>

    String CSV Parser interface for array output format.

    StringArrayCSVParser parses string CSV data and returns records as arrays. Each record is returned as a tuple/array with values in header order.

    This interface is designed to be easily implemented in Rust/WASM with clear type semantics.

    const parser: StringArrayCSVParser<['name', 'age']> = ...;
    for (const record of parser.parse('Alice,30\nBob,25')) {
    console.log(record); // ['Alice', '30'] - typed as named tuple
    }
    interface StringArrayCSVParser<
        Header extends ReadonlyArray<string> = readonly string[],
    > {
        parse(
            chunk?: string,
            options?: CSVParserParseOptions,
        ): IterableIterator<CSVArrayRecord<Header, "keep">>;
    }

    Type Parameters

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

      Array of header field names

    Implemented by

    Index

    Methods

    Methods