Main entry point for extracting and creating tarballs. See TarIterator and TarEntry for more granular options.

Hierarchy

Constructors

Properties

entries: TarEntry[] = []

Methods

  • Convenience option for building tarball data

    Returns

    this for operation chaining

    Parameters

    • path: string

      the file name, e.g. './relative/path/to/your/file.txt'

    • content: string

      the content of the file (shocker!)

    • Optional headerOptions: Partial<UstarHeaderLike>

      custom options for this entry

    Returns Archive

Generated using TypeDoc