Skip to content

Latest commit

 

History

History
 
 

hadron-plugin-manager

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@mongodb-js/hadron-plugin-manager

Hadron Plugin Manager

Installation

npm install --save @mongodb-js/hadron-plugin-manager

Usage

const pluginsPath = path.join(__dirname, 'plugins');
const intPluginsPath = path.join(__dirname, 'internal-plugins');
const PluginManager = require('@mongodb-js/hadron-plugin-manager');
const { AppRegistry } = require('hadron-app-registry');

const manager = new PluginManager(
  [ intPluginsPath, pluginsPath ],
  __dirname,
  ['external-plugins/example3']
);

const appRegistry = new AppRegistry();
manager.activate(appRegistry);