hmApp.packageInfo()
Get the information from Mini Program Configuration
Type
() => Package
Parameters
Package
Only the attribute names are listed here, please refer to Mini Program Configuration for attribute descriptions and detailed types
| Properties |
|---|
| name |
| type |
| version |
| icon |
| appId |
| description |
| vendor |
| pages |
Code example
const { name } = hmApp.packageInfo()
console.log(name)