2.5.0 • Published 3 years ago

node-pluginsmanager v2.5.0

Weekly downloads
3
License
ISC
Repository
github
Last release
3 years ago

node-pluginsmanager

A plugins manager

Build status Coverage status Dependency status Dev dependency status Issues Pull requests

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

Plugin

Routes

Routes

Content

check the TypeScript definition file

Events

  • on("error", (err: Error) => void) : this fires if an error occurs

  • on("loading", (plugin: Orchestrator, data?: any) => void) : this fires if a plugin starts load

  • on("loaded", (plugin: Orchestrator, data?: any) => void) : this fires if a plugin ends load
  • on("allloaded", (data?: any) => void) : this fires if all the plugins are loaded

  • on("initializing", (plugin: Orchestrator, data?: any) => void) : this fires if a plugin starts init

  • on("initialized", (plugin: Orchestrator, data?: any) => void) : this fires if a plugin ends init
  • on("allinitialized", (data?: any) => void) : this fires if all the plugins are initialized

  • on("released", (plugin: Orchestrator, data?: any) => void) : this fires if a plugin is released

  • on("allreleased", (data?: any) => void) : this fires if all the plugins are released

  • on("destroyed", (pluginName: string, data?: any) => void) : this fires if a plugin is destroyed

  • on("alldestroyed", (data?: any) => void) : this fires if all the plugins are destroyed

  • on("installed", (pluginName: string, data?: any) => void) : this fires if a plugin is installed

  • on("updated", (plugin: Orchestrator, data?: any) => void) : this fires if a plugin is updated
  • on("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

License

ISC

2.5.0

3 years ago

2.4.4

3 years ago

2.4.1

4 years ago

2.4.0

4 years ago

2.4.3

4 years ago

2.4.2

4 years ago

2.3.8

4 years ago

2.3.9

4 years ago

2.3.7

4 years ago

2.3.4

5 years ago

2.3.6

4 years ago

2.3.5

5 years ago

2.3.3

5 years ago

2.3.2

5 years ago

2.3.1

5 years ago

2.3.0

6 years ago

2.2.1

7 years ago

2.2.0

7 years ago

2.1.7

7 years ago

2.1.6

7 years ago

2.1.5

7 years ago

2.1.4

7 years ago

2.1.3

7 years ago

2.1.2

7 years ago

2.1.1

7 years ago

2.1.0

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.15.1

7 years ago

0.15.0

7 years ago

0.14.0

7 years ago

0.13.1

7 years ago

0.13.0

7 years ago

0.12.0

8 years ago

0.11.0

8 years ago

0.9.0

8 years ago

0.8.2

9 years ago

0.8.0

9 years ago

0.7.0

9 years ago

0.6.1

9 years ago

0.6.0

9 years ago

0.5.3

9 years ago

0.5.2

9 years ago

0.5.1

9 years ago

0.5.0

9 years ago

0.4.0

10 years ago

0.3.4

10 years ago

0.3.3

10 years ago

0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.0

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago