Node js: Download file to memory and pass to library function without saving to disk

The below code is working fine, but I had some code feedback: "Why download and save the file to disk, only to read it back in memory?" However, after spending some hours exploring options with Buffer and stream, I just don’t seem to be getting anywhere. const fs = require(‘fs’); const { PdfData } =… Read More Node js: Download file to memory and pass to library function without saving to disk