node-pluginsmanager
v2.5.0
Published
A plugins manager
Downloads
29
Readme
node-pluginsmanager
A plugins manager
please note that this version is only usable with node-pluginsmanager-plugin 3.x.x && 4.x.x
Installation
$ npm install node-pluginsmanager
Features
- simply manage plugins (extended from node-pluginsmanager-plugin) to interact with specifics hardwares / API / whatever
- install plugins manually or via github & initialize them
- update plugins via github
- uninstall plugins and release there resources
- run plugins' middlewares for server, to create specifics rules
- check plugins' modules' versions
Architecture
Plugin
Routes
Content
check the TypeScript definition file
Events
on("error", (err: Error) => void) : this
fires if an error occurson("loading", (plugin: Orchestrator, data?: any) => void) : this
fires if a plugin starts loadon("loaded", (plugin: Orchestrator, data?: any) => void) : this
fires if a plugin ends loadon("allloaded", (data?: any) => void) : this
fires if all the plugins are loadedon("initializing", (plugin: Orchestrator, data?: any) => void) : this
fires if a plugin starts initon("initialized", (plugin: Orchestrator, data?: any) => void) : this
fires if a plugin ends initon("allinitialized", (data?: any) => void) : this
fires if all the plugins are initializedon("released", (plugin: Orchestrator, data?: any) => void) : this
fires if a plugin is releasedon("allreleased", (data?: any) => void) : this
fires if all the plugins are releasedon("destroyed", (pluginName: string, data?: any) => void) : this
fires if a plugin is destroyedon("alldestroyed", (data?: any) => void) : this
fires if all the plugins are destroyedon("installed", (pluginName: string, data?: any) => void) : this
fires if a plugin is installedon("updated", (plugin: Orchestrator, data?: any) => void) : this
fires if a plugin is updatedon("uninstalled", (pluginName: string, data?: any) => void) : this
fires if a plugin is uninstalled
Examples
check the TypeScript compilation tests
Tests
$ git clone git://github.com/Psychopoulet/node-pluginsmanager.git
$ cd ./node-pluginsmanager
$ npm install
$ npm run-script tests