@radzor/csv-import
Parse, validate, and batch-import CSV files. Supports streaming for large files, schema validation with typed coercion, error row collection, and progress tracking. Works with file uploads, S3 streams, and local paths.
Install
View source on GitHub →Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| delimiter | string | , | Field delimiter character. Use '\t' for TSV. |
| hasHeader | boolean | true | Whether the first row contains column headers. |
| encoding | string | utf-8 | File encoding (utf-8, latin1, utf-16le). |
| batchSize | number | 100 | Number of rows to emit per onBatch event and database insert. |
| skipEmptyRows | boolean | true | Skip rows where all fields are empty. |
| schema | Record<string, 'string' | 'number' | 'boolean' | 'date'> | — | Column type map for coercion and validation. Keys are column names. |