List the contents of a tar.xz archive.
Returns an AsyncIterable<TarEntry> yielding each entry's metadata. Entry content is skipped — use extract() if you need the data. Memory usage is bounded to O(BLOCK_SIZE) — no content bytes are held.
AsyncIterable<TarEntry>
extract()
for await (const entry of list(input)) { console.log(entry.name, entry.size);} Copy
for await (const entry of list(input)) { console.log(entry.name, entry.size);}
List the contents of a tar.xz archive.
Returns an
AsyncIterable<TarEntry>yielding each entry's metadata. Entry content is skipped — useextract()if you need the data. Memory usage is bounded to O(BLOCK_SIZE) — no content bytes are held.