import { Tarball } from "https://deno.land/x/ayonli_jsext@v0.9.72/archive.ts";
Retrieves an entry in the archive by its relative path.
The returned entry object contains a stream
property which is a copy of
the entry's data, and since it's a copy, the data in the archive is still
available even after the stream
property is consumed.
However, due to the nature of the ReadableStream.tee()
API, if the copy
is consumed, the data will be loaded and cached in memory until the
tarball's stream is consumed or dropped. This may cause memory issues for
large files, so it is recommended not to use the stream
property unless
necessary.
Returns
(TarEntry & { readonly stream: ReadableStream<Uint8Array>; }) | null