@yutaura/csv-batch-reader
v1.2.10
Published
## Description
Downloads
332
Readme
@yutaura/csv-batch-reader
Description
This is a library for reading CSV files in batch.
import { csvBatchRead } from '@yutaura/csv-batch-reader';
await csvBatchRead(
'path/to/csv-file.csv',
100, // batch size
async (headers) => {
// do something with headers
},
async (batch) => {
// do something with batch
for (const row of batch) {
// do something with row
console.log(row);
}
},
);
Installation
pnpm install @yutaura/csv-batch-reader
License
MIT
Funding
If you like this library, please consider supporting me on GitHub Sponsors