would [tmp](https://npmjs.org/package/tmp) work here as well?