Optional
entries: ArchiveEntry[]Convenience option for building tarball data
the file name, e.g. './relative/path/to/your/file.bin'
the content of the file (shocker!)
custom options for this entry
this
for operation chaining
Convenience option for building tarball data
the directory name, e.g. './relative/path/to/your/dir'
custom options for this entry
this
for operation chaining
Convenience for appending a new entry to the existing entries
array
this
for operation chaining
Convenience for appending a new entry to the existing entries
array.
Optional
content: Uint8Array<ArrayBufferLike>this
for operation chaining
Convenience option for building tarball data
the file name, e.g. './relative/path/to/your/file.txt'
the content of the file (shocker!)
Optional
headerOptions: Partial<UstarHeaderLike>custom options for this entry
this
for operation chaining
Convenience option for cleaning the header of each listed entry. When headers are "cleaned", unknown PAX properties will be removed (e.g. unwanted MacOS "quarantine" headers), and USTAR fields will be normalized (if necessary).
Removes any entries from this writer's cache that meet the given predicate condition.
delegate that will return true for any entry that should be removed.
this
for operation chaining
a complete tar buffer from all the currently set tar entries in this instance.
Static
extractParses an Archive instance from the given buffer, with all entries read into memory. The buffer should come from a complete, uncompressed tar file.
Static
readIterate over entries in-place from a given source buffer. The buffer should come from a complete, uncompressed tar file.
Optional
options: Partial<AsyncUint8ArrayIteratorOptions>Static
serializeCombines the given array of entries into a single, complete tarball buffer
Main entry point for extracting and creating tarballs. See TarIterator and ArchiveEntry for more granular options.