Skip to content

abdennour/mufa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a8a981b · Sep 28, 2019

History

22 Commits
Feb 6, 2017
Sep 28, 2019
Feb 5, 2017
Feb 5, 2017
Feb 5, 2017
Jan 19, 2017
Jan 19, 2017
Jan 18, 2017
Jan 18, 2017
Jan 18, 2017
Feb 5, 2017
Jan 18, 2017
Feb 5, 2017
Jan 21, 2017
Jan 21, 2017

Repository files navigation

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 .

About

event driven programming

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published