1e41f4b71Sopenharmony_ci# HapModuleInfo
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ciThe **HapModuleInfo** module provides information about an HAP module. Unless otherwise specified, the information is obtained through [bundle.getBundleInfo](js-apis-Bundle.md#bundlegetbundleinfodeprecated).
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ci> **NOTE**
6e41f4b71Sopenharmony_ci>
7e41f4b71Sopenharmony_ci> The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
8e41f4b71Sopenharmony_ci
9e41f4b71Sopenharmony_ci## HapModuleInfo<sup>(deprecated)<sup>
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_ci> This API is deprecated since API version 9. You are advised to use [bundleManager-HapModuleInfo](js-apis-bundleManager-hapModuleInfo.md) instead.
12e41f4b71Sopenharmony_ci
13e41f4b71Sopenharmony_ci**System capability**: SystemCapability.BundleManager.BundleFramework
14e41f4b71Sopenharmony_ci
15e41f4b71Sopenharmony_ci| Name                             | Type                                                        | Read-Only| Optional| Description                |
16e41f4b71Sopenharmony_ci| --------------------------------- | ------------------------------------------------------------ | ---- | ---- | -------------------- |
17e41f4b71Sopenharmony_ci| name                              | string                                                       | Yes  | No  | Module name.            |
18e41f4b71Sopenharmony_ci| description                       | string                                                       | Yes  | No  | Module description.        |
19e41f4b71Sopenharmony_ci| descriptionId                     | number                                                       | Yes  | No  | Module description ID.          |
20e41f4b71Sopenharmony_ci| icon                              | string                                                       | Yes  | No  | Module icon.            |
21e41f4b71Sopenharmony_ci| label                             | string                                                       | Yes  | No  | Module label.            |
22e41f4b71Sopenharmony_ci| labelId                           | number                                                       | Yes  | No  | Module label ID.          |
23e41f4b71Sopenharmony_ci| iconId                            | number                                                       | Yes  | No  | Module icon ID.          |
24e41f4b71Sopenharmony_ci| backgroundImg                     | string                                                       | Yes  | No  | Module background image.        |
25e41f4b71Sopenharmony_ci| supportedModes                    | number                                                       | Yes  | No  | Running modes supported by the module.      |
26e41f4b71Sopenharmony_ci| reqCapabilities                   | Array\<string>                                               | Yes  | No  | Capabilities required for module running.  |
27e41f4b71Sopenharmony_ci| deviceTypes                       | Array\<string>                                               | Yes  | No  | Device types supported by the module.  |
28e41f4b71Sopenharmony_ci| abilityInfo                       | Array\<[AbilityInfo](js-apis-bundle-AbilityInfo.md)>         | Yes  | No  | Ability information.         |
29e41f4b71Sopenharmony_ci| moduleName                        | string                                                       | Yes  | No  | Module name.              |
30e41f4b71Sopenharmony_ci| mainAbilityName                   | string                                                       | Yes  | No  | Name of the main ability.     |
31e41f4b71Sopenharmony_ci| installationFree                  | boolean                                                      | Yes  | No  | Whether installation-free is supported.      |
32