Extract a tar.xz archive.
Returns an AsyncIterable<TarEntryWithData>. Each yielded entry includes:
AsyncIterable<TarEntryWithData>
TarEntry
data
AsyncIterable<Uint8Array>
bytes()
Uint8Array
text(encoding?)
for await (const entry of extract(input)) { const content = await entry.bytes(); console.log(entry.name, content.length);} Copy
for await (const entry of extract(input)) { const content = await entry.bytes(); console.log(entry.name, content.length);}
Extract a tar.xz archive.
Returns an
AsyncIterable<TarEntryWithData>. Each yielded entry includes:TarEntryfields)data—AsyncIterable<Uint8Array>for the entry's content (consume in order)bytes()— helper that collects all chunks into a singleUint8Arraytext(encoding?)— helper that collects and decodes to a string