js-apis-bundle-ModuleInfo.md 759 字节
Newer Older
W
wusongqing 已提交
1 2
# ModuleInfo

3
The **ModuleInfo** module provides module information of an application.
W
wusongqing 已提交
4

W
wusongqing 已提交
5 6
> **NOTE**
>
W
wusongqing 已提交
7 8
> 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.

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.
W
wusongqing 已提交
11 12

**System capability**: SystemCapability.BundleManager.BundleFramework
G
Gloria 已提交
13

W
wusongqing 已提交
14 15 16 17
| Name           | Type  | Readable| Writable| Description    |
| --------------- | ------ | ---- | ---- | -------- |
| moduleName      | string | Yes  | No  | Module name.|
| moduleSourceDir | string | Yes  | No  | Installation directory.|