- Typescript
- papaparse
- @vueuse/shared
-
useCsv(options?: MaybeRef) it expects the papaparse Unparse options. it returns a function
exportToFileand a functionimportFromFile -
exportToFile It expects a filename and an array of genercis
T, then it parses the array end prompt a download for the filename provided -
importFromFile It expects a file and the ParseConfig from papaparse. It returns a Promise with an Array of generic
T, or throw