tar-xz - v6.1.1
    Preparing search index...

    Function create

    • Create a tar.xz archive.

      Returns an AsyncIterable<Uint8Array> of compressed chunks. The output is never written to disk — pipe it wherever you need:

      const out = createWriteStream('archive.tar.xz');
      await pipeline(Readable.from(create({ files })), out);

      Parameters

      Returns AsyncIterable<Uint8Array<ArrayBufferLike>>

      AsyncIterable of compressed XZ chunks