@jrgm - can a library like [tmp](https://npmjs.org/package/tmp) be used for this?