Skip to content
This repository has been archived by the owner on Sep 22, 2021. It is now read-only.

Latest commit

 

History

History
65 lines (44 loc) · 2.16 KB

modules.md

File metadata and controls

65 lines (44 loc) · 2.16 KB

ModuleRegistry

Kind: global class

new ModuleRegistry()

Represents a ModuleRegistry

moduleRegistry.registerLibrary(library) ⇒

Registers a library's modules

Kind: instance method of ModuleRegistry
Returns: same instance to allow chaining

Param Type Description
library object The library to register

moduleRegistry.registerModuleDirectory(path) ⇒

Registers a directory of modules

Kind: instance method of ModuleRegistry
Returns: same instance to allow chaining

Param Type Description
path string | Array.<string> The path to scan

moduleRegistry.registerModule(pathOrModule) ⇒

Registers a single module

Kind: instance method of ModuleRegistry
Returns: same instance to allow chaining

Param Type Description
pathOrModule string | object The path or module object

moduleRegistry.get(names) ⇒ Array.<object>

Returns modules (along with dependencies) to register

Kind: instance method of ModuleRegistry
Returns: Array.<object> - The list of resolved modules

Param Type Description
names string | Array.<string> Names of the modules to return