Reimplementation of sponge(1) from moreutils.
<file> is omitted, write to stdout.
Returns a writable stream that buffers the input and then writes to a file.
Returns a transform stream that buffers the input and then writes to the output.
- moreutils - growing collection of the unix tools that nobody thought to write long ago when unix was young.
npm install sponge