parseCsvFile
chainalign-backend / utils/csvParser / parseCsvFile
Function: parseCsvFile()
parseCsvFile(
filePath,sampleSize?):Promise<{headers:string[];sampleRows:any[]; }>
Defined in: utils/csvParser.js:10
Parses a CSV file to extract headers and a sample of rows.
Parameters
filePath
string
The absolute path to the CSV file.
sampleSize?
number = 10
The number of rows to sample.
Returns
Promise<{ headers: string[]; sampleRows: any[]; }>