shoutout
The simplest eventing library that could possible work.
Last updated 6 years ago by killdream .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install shoutout 
SYNC missed versions from official npm registry.

Shout-out

Build Status NPM version Dependencies Status stable

Browser support

The simplest eventing library that could possible work.

Example

var signal = require('shoutout')
var clicked = signal()

clicked.add(function(x, y){ console.log(x, y) })
clicked(10, 10)
// => 10 10

Installing

Easy-modo: grab it from NPM (use Browserify if you're on a browser):

$ npm install shoutout

If you're using AMD or no module system at all, you can grab the dist/shoutout.umd.js file. Note that NPM is the recommended and officially supported way, and that the UMD bundle will include all the dependencies for the library.

Documentation

Read online at http://shoutout.rtfd.org/ or build your own local copy:

$ make docs

Note that you'll need Sphinx

Tests

For node:

$ npm test

For the browser:

$ npm install -g brofist-browser
$ make test-browser

Platform support

This library assumes an ES5 environment, but can be easily supported in ES3 platforms by the use of shims. Just include es5-shim :3

Support

Developers

Licence

MIT/X11. i.e.: do whatever you want.

Current Tags

  • 1.1.0                                ...           latest (6 years ago)

3 Versions

  • 1.1.0                                ...           6 years ago
  • 1.0.1                                ...           7 years ago
  • 1.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (7)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |