microframework-t-event-dispatcher
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

T-Event-Dispatcher module for Microframework

Adds integration between t-event-dispatcher and microframework.

Usage

  1. Install module:

    npm install --save microframework-t-event-dispatcher

  2. Simply register module in the microframework when you are bootstrapping it.

        import {MicroFrameworkBootstrapper} from "microframework/MicroFrameworkBootstrapper";
        import {TEventDispatcherModule} from "microframework-t-event-dispatcher/TEventDispatcherModule";
        
        new MicroFrameworkBootstrapper({ baseDirectory: __dirname })
            .registerModules([
                new TEventDispatcherModule()
            ])
            .bootstrap()
            .then(result => console.log('Module is running. Subscribers can be used now'))
            .catch(error => console.error('Error: ', error));
            
  3. Now you can use t-event-dispatcher module in your microframework.

Todos

  • cover with tests
  • add more docs

Readme

Keywords

none

Package Sidebar

Install

npm i microframework-t-event-dispatcher

Weekly Downloads

7

Version

0.0.2

License

Apache-2.0

Last publish

Collaborators

  • pleerock