Cell API
    Preparing search index...

    Class ZipWriter

    Writes zip archives (the code packages of FC, SCF and Lambda) without a dependency: deflate from node:zlib, Unix permissions in the external attributes so start scripts stay executable, a fixed timestamp so the same output gives the same archive.

    Index
    chunks: Buffer<ArrayBufferLike>[] = []
    entries: ZipEntry[] = []
    offset: number = 0
    CRC_TABLE: Uint32Array<ArrayBufferLike> = ...
    DOS_DATE: number = ...

    1980-01-01 00:00, the earliest DOS date.

    • Parameters

      • name: string
      • content: string | Buffer<ArrayBufferLike>
      • mode: number = 0o644

      Returns this

    • Adds every file under dir, sorted, at prefix (a/b style) in the archive.

      Parameters

      • dir: string
      • prefix: string = ''

      Returns this