node-csvtojson
node-csvtojson copied to clipboard
include unparsed CSV line in json output
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"
}
I was wondering if there was a way to do this too, maybe as another parameter to .subscribe instead of part of the json?