CSV output format type.
Determines the format of parsed CSV records:
"object"
"array"
const parser = createStringCSVParser({ header: ['name', 'age'], outputFormat: 'object' // CSVOutputFormat});// Returns: { name: 'Alice', age: '30' } Copy
const parser = createStringCSVParser({ header: ['name', 'age'], outputFormat: 'object' // CSVOutputFormat});// Returns: { name: 'Alice', age: '30' }
const parser = createStringCSVParser({ header: ['name', 'age'], outputFormat: 'array' // CSVOutputFormat});// Returns: ['Alice', '30'] Copy
const parser = createStringCSVParser({ header: ['name', 'age'], outputFormat: 'array' // CSVOutputFormat});// Returns: ['Alice', '30']
CSV output format type.