$ ls | grep test
app.get('/', fn1, fn2, fn3); // or pass an array
app.use(errorHandler);
readable.pipe(transform).pipe(writable);
$('a').parent().next().filter('b').text();
getData(data)
.then(compute)
.then(computeSomeMore);
Do we need a shared context?
Do we need a nice name? Should we curry? Composing like baos?
How to pass data?
- data object?
- via next?
- this?
Handling errors?
- centralized?
- bound?
// pass data via req
// pass error to centralized errorHandler
pype(context, stack, errorHandler, finalHandler)(req, res);
// pass data via data object
// pass error to centralized errorHandler
// #1
pype(context, stack, errorHandler, finalHandler)(data);
// #2
pype(data, errorHandler stack);
// #3
pype(data, fn1, fn2, fn3); // bound errorHandler