Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kantis/hookpoints


https://github.com/kantis/hookpoints

Last synced: 11 days ago
JSON representation

Awesome Lists containing this project

README

        

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