Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Zip

Hierarchy

Index

Constructors

constructor

  • new Zip(pathOrUrl: string): Zip

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

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>

Abstract 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>

Protected Abstract preInit

  • preInit(): Promise<void>
  • Any initialization needed like checking for partial download support and file size initialization.

    Returns Promise<void>

Generated using TypeDoc