Skip to content

csvRow

csvRow(csv, index, options?) → object · CSV

Get a specific row by index as an object (keyed by column names).

  • csv (required): CSV string

  • index (required): row index (0-based, excluding header)

  • options (optional): parsing options

utlx
let csv = "Name,Age\nAlice,30\nBob,25"
{
  firstRow: csvRow(csv, 0)    // {Name: "Alice", Age: "30"}
}

Released under AGPL-3.0.