2.5.0 • Published 9 months ago

node-pluginsmanager v2.5.0

Weekly downloads
3
License
ISC
Repository
github
Last release
9 months 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

9 months ago

2.4.4

1 year ago

2.4.1

2 years ago

2.4.0

2 years ago

2.4.3

2 years ago

2.4.2

2 years ago

2.3.8

2 years ago

2.3.9

2 years ago

2.3.7

2 years ago

2.3.4

2 years ago

2.3.6

2 years ago

2.3.5

2 years ago

2.3.3

3 years ago

2.3.2

3 years ago

2.3.1

3 years ago

2.3.0

4 years ago

2.2.1

4 years ago

2.2.0

4 years ago

2.1.7

5 years ago

2.1.6

5 years ago

2.1.5

5 years ago

2.1.4

5 years ago

2.1.3

5 years ago

2.1.2

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.15.1

5 years ago

0.15.0

5 years ago

0.14.0

5 years ago

0.13.1

5 years ago

0.13.0

5 years ago

0.12.0

6 years ago

0.11.0

6 years ago

0.9.0

6 years ago

0.8.2

7 years ago

0.8.0

7 years ago

0.7.0

7 years ago

0.6.1

7 years ago

0.6.0

7 years ago

0.5.3

7 years ago

0.5.2

7 years ago

0.5.1

7 years ago

0.5.0

7 years ago

0.4.0

8 years ago

0.3.4

8 years ago

0.3.3

8 years ago

0.3.2

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago