• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# ModuleInfo
2
3The **ModuleInfo** module provides module information of an application.
4
5> **NOTE**
6>
7> 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.
8
9## ModuleInfo<sup>(deprecated)<sup>
10> This API is deprecated since API version 9. You are advised to use [bundleManager-HapModuleInfo](js-apis-bundleManager-hapModuleInfo.md) instead.
11
12**System capability**: SystemCapability.BundleManager.BundleFramework
13
14| Name           | Type  | Readable| Writable| Description    |
15| --------------- | ------ | ---- | ---- | -------- |
16| moduleName      | string | Yes  | No  | Module name.|
17| moduleSourceDir | string | Yes  | No  | Installation directory. A resource file cannot be accessed by combining paths. Use [Resource Manager](js-apis-resource-manager.md) to access it. |
18