Options
All
  • Public
  • Public/Protected
  • All
Menu

Package yarnpkg-libzip

@yarnpkg/libzip

This package contains a wasm-compiled version of the libzip.

Upgrade the libzip build

  • Bump the version numbers in artifacts/build.sh
  • Run the artifacts/build.sh script

Expose new functions

  • Add the new functions to artifacts/exported.json
  • List them in sources/index.ts
  • Run the artifacts/build.sh script

Type aliases

Libzip

Libzip: ReturnType<typeof makeInterface>

Variables

Let mod

mod: Libzip | null = null

Const number64

number64: "number"[] = [`number`, // low`number`, // high] as Array<'number'>

Let promise

promise: Promise<Libzip> | null = null

Functions

getLibzipPromise

  • getLibzipPromise(): Promise<object>

getLibzipPromise

  • getLibzipPromise(): Promise<void>

getLibzipSync

  • getLibzipSync(): object
  • Returns object

    • SEEK_CUR: number
    • SEEK_END: number
    • SEEK_SET: number
    • ZIP_CHECKCONS: number
    • ZIP_CM_DEFAULT: number
    • ZIP_CM_DEFLATE: number
    • ZIP_CM_STORE: number
    • ZIP_CREATE: number
    • ZIP_EXCL: number
    • ZIP_FL_OVERWRITE: number
    • ZIP_OPSYS_ACORN_RISC: number
    • ZIP_OPSYS_ALTERNATE_MVS: number
    • ZIP_OPSYS_AMIGA: number
    • ZIP_OPSYS_ATARI_ST: number
    • ZIP_OPSYS_BEOS: number
    • ZIP_OPSYS_CPM: number
    • ZIP_OPSYS_DOS: number
    • ZIP_OPSYS_MACINTOSH: number
    • ZIP_OPSYS_MVS: number
    • ZIP_OPSYS_OPENVMS: number
    • ZIP_OPSYS_OS_2: number
    • ZIP_OPSYS_OS_400: number
    • ZIP_OPSYS_OS_X: number
    • ZIP_OPSYS_TANDEM: number
    • ZIP_OPSYS_UNIX: number
    • ZIP_OPSYS_VFAT: number
    • ZIP_OPSYS_VM_CMS: number
    • ZIP_OPSYS_VSE: number
    • ZIP_OPSYS_WINDOWS_NTFS: number
    • ZIP_OPSYS_Z_SYSTEM: number
    • ZIP_RDONLY: number
    • ZIP_TRUNCATE: number
    • close: function
        • (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    • discard: function
        • (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    • fclose: function
        • (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    • fopen: function
        • (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    • fopenIndex: function
        • (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    • fread: function
        • (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    • free: _free
    • getError: function
        • (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    • getName: function
        • (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    • getNumEntries: function
        • (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    • getValue: getValue
    • malloc: _malloc
    • open: function
        • (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    • openFromSource: function
        • (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    • stat: function
        • (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    • statIndex: function
        • (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    • uint08S: number
    • uint16S: number
    • uint32S: number
    • uint64S: number
    • HEAP8:
    • HEAPU8:
    • dir: object
      • add: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

    • error: object
      • initWithCode: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • strerror: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

    • ext: object
      • countSymlinks: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

    • file: object
      • add: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • getError: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • getExternalAttributes: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • setCompression: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • setExternalAttributes: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • setMtime: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

    • name: object
      • locate: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

    • source: object
      • close: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • error: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • free: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • fromBuffer: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • fromUnattachedBuffer: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • keep: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • open: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • read: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • seek: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • setMtime: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • tell: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

    • struct: object
      • error: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • errorS: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • stat: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • statIndex: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • statMtime: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • statName: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • statS: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • statSize: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

getLibzipSync

  • getLibzipSync(): void

Const makeInterface

  • makeInterface(libzip: EmscriptenModule): object
  • Parameters

    • libzip: EmscriptenModule

    Returns object

    • SEEK_CUR: number
    • SEEK_END: number
    • SEEK_SET: number
    • ZIP_CHECKCONS: number
    • ZIP_CM_DEFAULT: number
    • ZIP_CM_DEFLATE: number
    • ZIP_CM_STORE: number
    • ZIP_CREATE: number
    • ZIP_EXCL: number
    • ZIP_FL_OVERWRITE: number
    • ZIP_OPSYS_ACORN_RISC: number
    • ZIP_OPSYS_ALTERNATE_MVS: number
    • ZIP_OPSYS_AMIGA: number
    • ZIP_OPSYS_ATARI_ST: number
    • ZIP_OPSYS_BEOS: number
    • ZIP_OPSYS_CPM: number
    • ZIP_OPSYS_DOS: number
    • ZIP_OPSYS_MACINTOSH: number
    • ZIP_OPSYS_MVS: number
    • ZIP_OPSYS_OPENVMS: number
    • ZIP_OPSYS_OS_2: number
    • ZIP_OPSYS_OS_400: number
    • ZIP_OPSYS_OS_X: number
    • ZIP_OPSYS_TANDEM: number
    • ZIP_OPSYS_UNIX: number
    • ZIP_OPSYS_VFAT: number
    • ZIP_OPSYS_VM_CMS: number
    • ZIP_OPSYS_VSE: number
    • ZIP_OPSYS_WINDOWS_NTFS: number
    • ZIP_OPSYS_Z_SYSTEM: number
    • ZIP_RDONLY: number
    • ZIP_TRUNCATE: number
    • close: function
        • (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    • discard: function
        • (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    • fclose: function
        • (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    • fopen: function
        • (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    • fopenIndex: function
        • (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    • fread: function
        • (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    • free: _free
    • getError: function
        • (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    • getName: function
        • (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    • getNumEntries: function
        • (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    • getValue: getValue
    • malloc: _malloc
    • open: function
        • (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    • openFromSource: function
        • (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    • stat: function
        • (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    • statIndex: function
        • (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    • uint08S: number
    • uint16S: number
    • uint32S: number
    • uint64S: number
    • HEAP8:
    • HEAPU8:
    • dir: object
      • add: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

    • error: object
      • initWithCode: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • strerror: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

    • ext: object
      • countSymlinks: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

    • file: object
      • add: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • getError: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • getExternalAttributes: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • setCompression: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • setExternalAttributes: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • setMtime: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

    • name: object
      • locate: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

    • source: object
      • close: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • error: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • free: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • fromBuffer: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • fromUnattachedBuffer: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • keep: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • open: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • read: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • seek: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • setMtime: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • tell: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

    • struct: object
      • error: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • errorS: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • stat: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • statIndex: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • statMtime: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • statName: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • statS: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      • statSize: function
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

Generated using TypeDoc