aboutsummaryrefslogtreecommitdiff
path: root/examples/macros/fetchCSV.tsx
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-09-27 21:21:51 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-09-27 21:21:51 -0700
commit2bb7f71b9c88b680008564cdf56186360228c317 (patch)
tree2c876e18189c7291c142f5c093f60b151a5d9528 /examples/macros/fetchCSV.tsx
parent2f8be4f13f6be8577afbb4c65db2faadf9459751 (diff)
downloadbun-2bb7f71b9c88b680008564cdf56186360228c317.tar.gz
bun-2bb7f71b9c88b680008564cdf56186360228c317.tar.zst
bun-2bb7f71b9c88b680008564cdf56186360228c317.zip
Fix up examplesbun-v0.0.26
Diffstat (limited to 'examples/macros/fetchCSV.tsx')
-rw-r--r--examples/macros/fetchCSV.tsx8
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 [