• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# ModuleInfo
2<!--Kit: Ability Kit-->
3<!--Subsystem: BundleManager-->
4<!--Owner: @wanghang904-->
5<!--Designer: @hanfeng6-->
6<!--Tester: @kongjing2-->
7<!--Adviser: @Brilliantry_Rui-->
8
9The ModuleInfo module provides module information of an application.
10
11> **NOTE**
12>
13> 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.
14>
15> The APIs of this module are deprecated since API version 9. You are advised to use [bundleManager-HapModuleInfo](js-apis-bundleManager-hapModuleInfo.md) instead.
16
17## ModuleInfo<sup>(deprecated)<sup>
18
19This API is deprecated since API version 9. You are advised to use [bundleManager-HapModuleInfo](js-apis-bundleManager-hapModuleInfo.md#hapmoduleinfo-1) instead.
20
21**System capability**: SystemCapability.BundleManager.BundleFramework
22| Name           | Type  | Read-Only| Optional| Description    |
23| --------------- | ------ | ---- | ---- | -------- |
24| moduleName      | string | Yes  | No  | Module name.|
25| moduleSourceDir | string | Yes  | No  | Installation directory. Do not access resource files using concatenated paths. Use [@ohos.resourceManager](../apis-localization-kit/js-apis-resource-manager.md) instead.|
26