0.1.0 • Published 10 years ago

hookpoints v0.1.0

Weekly downloads
3
License
-
Repository
-
Last release
10 years ago

Hookpoints

Small utility library for creating, subscribing to, and triggering hook points.

Installation

npm install hookpoints

Usage

var helloWorld = function() {
	console.log("Hello, World!");
};

var hookpoints = require('hookpoints');

hookpoints.register("NameOfHookPoint");
hookpoints.subscribe("NameOfHookPoint", helloWorld);
hookpoints.trigger("NameOfHookPoint");

Tests

npm test

Contributing

Fork and open a pull request on github

Release History

  • 0.1.0 Initial release
  • 0.1.1 Removed unnecessary dependency to MEAN.io