js-apis-bundle-ModuleInfo.md 745 字节
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 10
## ModuleInfo<sup>(deprecated)<sup>
> This API is deprecated since API version 9. You are advised to use [HapModuleInfo](js-apis-bundleManager-hapModuleInfo.md) instead.
W
wusongqing 已提交
11 12 13 14 15 16 17

**System capability**: SystemCapability.BundleManager.BundleFramework

| Name           | Type  | Readable| Writable| Description    |
| --------------- | ------ | ---- | ---- | -------- |
| moduleName      | string | Yes  | No  | Module name.|
| moduleSourceDir | string | Yes  | No  | Installation directory.|