Small utility library for creating, subscribing to, and triggering hook points.
npm install hookpoints
var helloWorld = function() {
console.log("Hello, World!");
};
var hookpoints = require('hookpoints');
hookpoints.register("NameOfHookPoint");
hookpoints.subscribe("NameOfHookPoint", helloWorld);
hookpoints.trigger("NameOfHookPoint");
npm test
Fork and open a pull request on github
- 0.1.0 Initial release
- 0.1.1 Removed unnecessary dependency to MEAN.io