p-temp-stream
A Writable stream that writes to a teporary file. That tmpfile can then be used in one of 2 ways.
- Move the file to another location
- Get a Readable stream to retrieve the data
Whatever the case, the tempfile is cleaned up once the data is consumed or by calling
cleanup()
explicitly.
const tmpstream = ;tmpstream;processstdin;
const tmpstream = ;tmpstream;processstdin;