I'd like to create an Excel File stream in Node Express and send the Excel file in the Node Express response to then be downloaded by the client browser. Problem is I'm completely inexperienced with streams and I'm not even sure this is possible.
A little background: I'm using a node package ExcelJs (https://www.npmjs.com/package/exceljs) to create an Excel document. I can create the Excel file just fine. I know that Express provides res.download option to download files to the client browser, but I think res.download requires an actual file with a path in order to download to the client browser. This code will be hosted on AWS, and I want to avoid having to create and save a file in S3 before grabbing the file and downloading it to the client browser.
ExcelJS has an option to create a; file, stream, or buffer excel. Is it be possible to create a stream with the required data and then send that file stream in the response to be downloaded in the client browser?