Parse CSV from a File to array of records.
Optional
Array of records
import { parseFile } from 'web-csv-toolbox';const input = document.querySelector('input[type="file"]');input.addEventListener('change', async (event) => { const file = event.target.files[0]; const records = await parseFile.toArray(file); console.log(records);}); Copy
import { parseFile } from 'web-csv-toolbox';const input = document.querySelector('input[type="file"]');input.addEventListener('change', async (event) => { const file = event.target.files[0]; const records = await parseFile.toArray(file); console.log(records);});
Parse CSV from a File to array of records.