ExHooks
lightweight nodejs library that allows you to register whichever hook you want, and you can issue it whenever you want, as easy as say hello.
Install.
- npm install --save exhooks
- npm install exhooks
- yarn add exhooks
Usage.
var exhooks = ;var express = ;var app = ; var hook_events = eventName: 'logout' { console } app;app; app;
What you cannot do.
- You cannot register hooks that contains any number
- You cannot register hooks that contains any special character.
- You cannot register hooks that are duplicated.