Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages