@mongodb-js/hadron-plugin-manager
v7.0.21
Published
Hadron Plugin Manager
Downloads
692
Maintainers
Keywords
Readme
@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);