Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PartialZip

Hierarchy

  • Zip
    • PartialZip

Index

Constructors

constructor

  • new PartialZip(url: string, headers?: Record<string, string>): PartialZip

Properties

Optional eocd

eocd: EOCD

EOCD

Optional eocd64

eocd64: EOCD64

EOCD64

Optional eocd64Locator

eocd64Locator: EOCD64Locator

EOCD64 Locator

files

files: Map<string, CentralDirectoryEntry> = new Map()

Central Directory Entries

Private headers

headers: Record<string, string>

Request headers

Protected path

path: string

Path/URL of Zip file

Protected size

size: number = -1

Zip size

Methods

get

Protected getCentralDir

  • getCentralDir(): Promise<void>

Protected getEocd

  • getEocd(): Promise<void>

init

  • init(): Promise<void>

partialGet

  • partialGet(start: number | bigint, end: number | bigint): Promise<Buffer>
  • Downloads part of a file from a url.

    Parameters

    • start: number | bigint

      start byte offset to get

    • end: number | bigint

      end byte offset to get

    Returns Promise<Buffer>

preInit

  • preInit(): Promise<void>

Generated using TypeDoc