Skip to content
flitbit edited this page Oct 26, 2012 · 3 revisions

A function pipe enables the management and execution of a series of operations between a source function and a target callback. Each operation in the series (often referred to as middleware) is executed in turn, potentially modifying the source's result, and ultimately, a caller provided target callback is invoked.

If you've used node for a while you are probably familiar with the function pipe pattern; it is used by connect, express, and flatiron to name a few. The goal of the fpipe module is to extract the function pipe behavior common to these great frameworks and encapsulate it for the community's use.

Clone this wiki locally