MCPcopy Create free account
hub / github.com/benwinding/react-admin-import-csv / processCsvFile

Function processCsvFile

src/csv-extractor.ts:12–21  ·  view source on GitHub ↗
(
  file: File | any,
  parseConfig: ParseConfig = {}
)

Source from the content-addressed store, hash-verified

10};
11
12export async function processCsvFile(
13 file: File | any,
14 parseConfig: ParseConfig = {}
15) {
16 if (!file) {
17 return;
18 }
19 const csvData = await getCsvData(file, parseConfig);
20 return processCsvData(csvData);
21}
22
23export async function getCsvData(
24 file: File | any,

Callers 2

GetCSVItemsFunction · 0.90

Calls 2

getCsvDataFunction · 0.85
processCsvDataFunction · 0.85

Tested by

no test coverage detected