Skip to content

@pumpkin-plugins/bedrock-addon-manager API / packs/manifest / readManifest

Function: readManifest() ​

readManifest(zip): PackManifest

Defined in: packages/bedrock-addon-manager/src/packs/manifest.ts:35

Reads a pack's manifest.json. Only the archive's central directory and the manifest itself are read, so a large pack on disk is never loaded whole.

Parameters ​

zip ​

Uint8Array<ArrayBufferLike> | ByteSource

The .mcpack archive, in memory or opened for reads at offsets.

Returns ​

PackManifest

Throws ​

When the archive or its manifest can't be used.

pumpkin-plugins documentation