0

How to download csv.gz file in Node.js and convert it to JSON? I tried this:

request.get("https://onesignal.s3.amazonaws.com/csv_exports/appID_etc.csv.gz", (error, res, body) => {
     console.log(body)   
})

but it prints me this output which I can't work with like converting it to JSON:

enter image description here

SwiftiSwift
  • 5,299
  • 7
  • 40
  • 71

0 Answers0