feature-rich publish / subscribe system.
Read the guide to learn how to use publisher.
publisher
works as an AMD module, a Node.js module, or a plain object.
Place publisher.js
in your application and require it as usual, it
registers anonymously.
require(['path/to/publisher'], function (publisher) {
/* Do stuff with publisher here */
});
Install with npm
npm install publisher
Include like everything else
var publisher = require('publisher');
If neither AMD nor Node.js are detected, publisher is global with a
noConflict
that restores the previous publisher
definition and returns
the publisher object.
publisher
publisher.noConflict();
Copyright (c) Ryan Florence
MIT-Style License
Fork, create a topic branch, send a pull request :D
While publisher
has no dependencies, developing it does.
You'll need to install some stuff to run the tests and generate docs. There's
a script in bin
to help. First make sure you've got Node.js, npm, and
Python installed, then simply run from the repository root:
$ ./bin/setup-dev
$ ./bin/run-tests
# or
$ tap test/test.js
$ ./bin/generate-docs