Create a tar.xz archive.
Returns an AsyncIterable<Uint8Array> of compressed chunks. The output is never written to disk — pipe it wherever you need:
AsyncIterable<Uint8Array>
const out = createWriteStream('archive.tar.xz');await pipeline(Readable.from(create({ files })), out); Copy
const out = createWriteStream('archive.tar.xz');await pipeline(Readable.from(create({ files })), out);
Creation options
AsyncIterable of compressed XZ chunks
Create a tar.xz archive.
Returns an
AsyncIterable<Uint8Array>of compressed chunks. The output is never written to disk — pipe it wherever you need: