ravibadoni
ravibadoni
any update on this?
> Maybe if someone needs a quick solution until it's fixed: > > ```js > import { Transform } from 'stream'; > > const csv = csvtojson(csvOptions); > > //...
yes @oliverfoster Please guide If I am doing something wrong. `parse(){ // you can use one more stream to transform csv stream output const transform = new Transform({ transform (chunk,...
```parse(){ const lineToArray = new Transform({ transform (chunk, encoding, cb) { this.push((this.isNotAtFirstRow ? ',' : '[') + chunk.toString('utf-8').slice(0,-2)); this.isNotAtFirstRow = true; cb(); }, flush(cb) { const isEmpty = (!this.isNotAtFirstRow); this.push(isEmpty...
will this work for `downstreamFormat: 'array'`
downstreamFormat: 'line' No data created in the file. Also. I want to have array of object.

I am calling resolve on header to get all header values. The code is working with array of object, The only thing I am getting is an comma at the...
``` parse(){ const lineToArray = new Transform({ transform (chunk, encoding, cb) { this.push((this.isNotAtFirstRow ? ',' : '[') + chunk.toString('utf-8').slice(0,-2)); this.isNotAtFirstRow = true; cb(); }, flush(cb) { const isEmpty = (!this.isNotAtFirstRow);...