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
serializeCombines the given array of entries into a single, complete tarball buffer
Generic utility for building a tar octet stream by adding JSON-style entries. See the
add***()
options in this class definition for details.