Skip to main content
Version: v3+

getPackageInfoById

Start from API_LEVEL 4.0 . Please refer to API_LEVEL.

Get some of the fields in the Mini Program configuration app.json by app ID.

Type

function getPackageInfoById(option: Option): Result

Parameters

Option

PropertyTypeRequiredDefaultValueDescriptionAPI_LEVEL
appIdnumberY-Mini Program ID4.0

Result

TypeDescription
objectPlease see the fields in app.json for more details

Example

import { getPackageInfoById } from '@zos/app'

const packageInfo = getPackageInfoById({ appId: 1001 })
console.log(packageInfo.name)