1.2.20 • Published 4 months ago

@yutaura/csv-batch-reader v1.2.20

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

@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

1.2.20

4 months ago

1.2.19

5 months ago

1.2.18

5 months ago

1.2.17

5 months ago

1.2.13

6 months ago

1.2.16

5 months ago

1.2.14

5 months ago

1.2.15

5 months ago

1.2.12

6 months ago

1.2.11

7 months ago

1.2.10

7 months ago

1.2.9

7 months ago

1.2.8

8 months ago

1.2.7

8 months ago

1.2.6

8 months ago

1.2.5

8 months ago

1.2.4

8 months ago

1.2.3

9 months ago

1.2.2

10 months ago

1.2.1

10 months ago

1.2.0

10 months ago

1.1.0

10 months ago

1.0.0

10 months ago

0.0.0-1

10 months ago

0.0.0-0

10 months ago