Optionalentries: 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.
Optionalcontent: 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!)
OptionalheaderOptions: 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.
StaticextractParses an Archive instance from the given buffer, with all entries read into memory. The buffer should come from a complete, uncompressed tar file.
StaticreadIterate over entries in-place from a given source buffer. The buffer should come from a complete, uncompressed tar file.
Optionaloptions: Partial<AsyncUint8ArrayIteratorOptions>StaticserializeCombines 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.