ravibadoni

Results 14 comments of ravibadoni

> 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.

![image](https://user-images.githubusercontent.com/34301405/82533083-3e250280-9b60-11ea-87e4-bcae1f051c35.png)

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);...