MCPcopy Create free account
hub / github.com/Easy-Editor/EasyEditor / registerPlugins

Method registerPlugins

packages/core/src/plugin/plugins.ts:147–151  ·  view source on GitHub ↗

* batch register plugins

(plugins: Plugin[], registerOptions?: PluginRegisterOptions)

Source from the content-addressed store, hash-verified

145 * batch register plugins
146 */
147 async registerPlugins(plugins: Plugin[], registerOptions?: PluginRegisterOptions) {
148 for (const plugin of plugins) {
149 await this.register(plugin, registerOptions)
150 }
151 }
152
153 get(pluginName: string): PluginRuntime | undefined {
154 return this.pluginsMap.get(pluginName)

Callers 2

index.tsFile · 0.80
index.tsFile · 0.80

Calls 1

registerMethod · 0.95

Tested by

no test coverage detected