ProtoTwin API
    Preparing search index...

    Class Archive

    Zip archive builder.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Adds a file to the archive.

      Parameters

      • path: string

        The path for the file.

      • data: Uint8Array

        The binary contents of the file.

      Returns void

    • Compresses the archive.

      Parameters

      Returns Uint8Array

      The compressed archive.

    • Compresses the archive.

      Parameters

      Returns Promise<Uint8Array<ArrayBufferLike>>

      The compressed archive.