node-csvtojson icon indicating copy to clipboard operation
node-csvtojson copied to clipboard

include unparsed CSV line in json output

Open tomryanx opened this issue 4 years ago • 1 comments

Is it possible to include the original, unparsed line in JSON output?

For example taking a file like this as input:

num,type,desc
1,cat,furry

and producing JSON like:

{
  "num":1,
  "type":"cat",
  "desc":"furry",
  "csv":"1,cat,furry"
}

tomryanx avatar Mar 29 '21 00:03 tomryanx

I was wondering if there was a way to do this too, maybe as another parameter to .subscribe instead of part of the json?

mikebridge avatar Jun 10 '21 00:06 mikebridge