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

    Type Alias PickCSVHeader<CSVSource, Delimiter, Quotation>

    PickCSVHeader: ExtractString<CSVSource> extends `${infer S}`
        ? SplitCSVFields<
            ExtractCSVHeader<S, Delimiter, Quotation>,
            Delimiter,
            Quotation,
        >
        : ReadonlyArray<string>

    Generates a delimiter-separated tuple of CSV headers from a CSVString.

    Type Parameters

    const csv = `name,age
    Alice,42
    Bob,69`;

    type _ = PickCSVHeader<typeof csv>
    // ["name", "age"]
    const csv = `name@$a
    ge$
    $Ali
    ce$@42
    Bob@69`;

    type _ = PickCSVHeader<typeof csv, "@", "$">
    // ["name", "a\nge"]