diff options
Diffstat (limited to 'examples/macros/fetchCSV.tsx')
-rw-r--r-- | examples/macros/fetchCSV.tsx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/macros/fetchCSV.tsx b/examples/macros/fetchCSV.tsx index 0709fd500..b06b1e03e 100644 --- a/examples/macros/fetchCSV.tsx +++ b/examples/macros/fetchCSV.tsx @@ -1,4 +1,12 @@ import Pappa from "papaparse"; +// Example usage: +// const rows = fetchCSV( +// "https://covid19.who.int/WHO-COVID-19-global-data.csv", +// { +// last: 100, +// columns: ["New_cases", "Date_reported", "Country"], +// } +// ); export async function fetchCSV(callExpression) { console.time("fetchCSV Total"); const [ |