Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kantis/hookpoints
https://github.com/kantis/hookpoints
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kantis/hookpoints
- Owner: Kantis
- License: mit
- Created: 2014-10-17T17:43:42.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-17T18:55:20.000Z (over 10 years ago)
- Last Synced: 2024-11-18T09:13:05.823Z (2 months ago)
- Language: JavaScript
- Size: 148 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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