We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3df598 commit 9c98212Copy full SHA for 9c98212
examples/node22.mjs
@@ -0,0 +1,12 @@
1
+import fs from 'node:fs'
2
+import path from 'node:path'
3
+
4
+import csv from '../index.js'
5
6
+async function readCSV (file) {
7
+ return Array.fromAsync(fs.createReadStream(file).pipe(csv()))
8
+}
9
10
+const results = await readCSV(path.join(import.meta.dirname, '../test/fixtures/basic.csv'))
11
12
+console.log(results)
0 commit comments