with-temp-file
Call a function with a temporary file, and clean up when the function returns!
usage
Call withTempFile with a function that takes the writeStream and optionally your own temporary file name. It will be called. It can return a promise or call the callback which is the third argument of the function.
const withTempFile = { const result = await console const result2 = await console}