Bitbybit Docs
    Preparing search index...

    Class GetHeadersDto (Inputs.CSV)

    Feeds csv.getHeaders with the CSV text, which row holds the header names and the separators.

    Index

    Constructors

    • Parameters

      • Optionalcsv: string
      • OptionalheaderRow: number
      • OptionalrowSeparator: string
      • OptionalcolumnSeparator: string

      Returns GetHeadersDto

    Properties

    csv: string

    The whole CSV text, headers included

    name,age\nJohn,30
    
    headerRow?: number

    Index of the row whose cells are the header names, counting from 0 and skipping blank lines

    0
    

    0

    Infinity

    1

    rowSeparator?: string

    The text between rows, normally a line break; \n written as two characters is read as one

    \n
    
    columnSeparator?: string

    The text between cells in a row, normally a comma; \t written as two characters is read as a tab

    ,