Indispensable fastener for building loosely coupled applications
Event Driven Application Architecture Module
This module creates a global instance of an EventEmitter that can be required by any module that would like to communicate with any other module in the application. This module provides the ability to create loosely coupled modules or event application architecture.
Event Application Architecture is the process of creating self contained modules that only communicate to other modules via messaging. This significantly reduces the rigid coupling that causes applications to become hard to test and manage.
var pin = require'linchpin';pinon'foo' console.log'you called foo.'; ;
var pin = require'linchpin';pinemit'foo' 'bar';
node main.js#> You Called Foo
var pin = require'linchpin';pinon'foo/*' console.log'you called foo xxx'; ;pinon'foo/bar/*' console.log'you called foo bar xxx'; ;pinon'foo/bar/baz' console.log'you called foo bar baz'; ;pinemit'foo/bar/baz';
npm install linchpin --save
- Check out Open Issues
- Post an Issue for a Feature
- Submit a Pull Request (Please Include Test Case)
- Ryan Dahl creator of nodejs and the whole nodejs team.
- Addy Osman for his presentations videos