Hotplug
Hotplug is an universal plugin manager system for nodejs apps
Instalation
npm install findhit-hotplug --save
Usage / Implementation Example
App-side
var Hotplug = ; start host: '127.0.0.1' port: '80' zip: '4490' ;
Plugin-side
var Hotplug = app = plugin = Hotplug; plugin ; // Now we can introduce methods to plugin plugin { // Some I/O }; plugin { // Some I/O }; plugin { // Some I/O }; // In the end, we just have to plug into app app;
Available Classes
Hotplug.App
- Event-driven Bus for each App.Hotplug.Plugin
- Event-driven for each Plugin which interacts with App.
How to access them?
var Hotplug = app plugin; // Lets examplify App creation app = 'MyAwesomeAppName' ; // Initialize app appstart app: 'options' so: 'each' plugin: 'can' read: 'it' ; // Now, Plugin creation plugin = 'PluginName' 'Type' object: 'with' plugin: 'data' ; // Linking plugin into app app;