In this question several ways were proposed to parse a json array into csv.
However in the answers given, fs is used to write the csv too. I am wondering whether it is possible to just convert a csv and make it available for the client to download without having to write it somewhere in the server? After all, the json already exists and writing a csv seems like duplication.
In my case I have a server with a mongodb collection which I'd like to make available portions of to clients as a csv.
thank you for your help!