event driven programming
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cdn
docs
sample-site
src
test
.babelrc
.coveralls.yml
.gitignore
.npmignore
.travis.yml
README.md
index.js
package.json
server.js
webpack.sample.config.js

README.md

Build Status Coverage Status

Overview :

Mufa is an abbreviation of مُفَوَّضْ (Mufawwad) which is an arabic word and it means DELEGATOR. It is designed to separate layers of your application via sub/pub pattern ; where there are two actors : Subscriber (listener) and publisher (notifier).

See documetation .

Install

npm install mufa --save;

or, use as CDN :

 <script
   src="https://rawgit.com/abdennour/mufa/master/cdn/mufa-latest.js"
   type="text/javascript">
</script>

Example :

  import {on, fire} from 'mufa';
  // publish
  setTimeout(() => {
     fire('sendEmoji', '👏');
  }, 1000)  ;
  // subscribe
  on('sendEmoji', (emoji) => console.log(emoji));

#Documentation :

See here .

License:

MIT .