I would like to make a tar archive in node. The canonical tar archiving example is based on a file stream:
fstream
.Reader({path: 'src', type: "Directory"})
.pipe(tar.Pack())
.pipe(zlib.createGzip())
.pipe(fstream.Writer("output.tar.gz"));
My data is actually in memory as a string, which I would like to write to the archive without having to make a temporary file in between.
Is there some way I can do this, e.g. maybe make an fstream out of a string?