0.0.0 • Published 9 years ago

event-easy v0.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
9 years ago

event-easy NPM version

event module

Installation

$ npm install event-easy

Example

var eventEasy = require('event-easy'); eventEasy.once('test', function() { console.log('test event~'); });

eventEasy.subscribe('test', function(a) { console.log('test event1~' + a); });

eventEasy.publish('test', 123);

//eventEasy.unsubscribe('test');

eventEasy.publish('test', 123); eventEasy.publish('test', 123);

API

Event.subscribe()
Event.publish()
Event.unsubscribe()
Event.once()

Contributing

  • Fork this Repo first
  • Clone your Repo
  • Install dependencies by $ npm install
  • Checkout a feature branch
  • Feel free to add your features
  • Make sure your features are fully tested
  • Publish your local branch, Open a pull request
  • Enjoy hacking <3

ISC license

Copyright (c) 2016 baiguangan


docor built upon love by docor v0.3.0