stack-queue
Execution stacks compatible with promises
Installation
npm install --save stack-queue
Usage
Have you ever used express or connect?
If so, you should know how they share they stack with function ( req, res, next )
.
This module allows you to apply a nextable queue method in any circunstance, and compatible with promises!
Lets see some examples:
connect Example
This is how you would implement a connect-like example:
var http = Stack = ; var stack = server = http; // Now you should be able to stack things on requeststack; // You can even chain stack.queue callsstack ; // Or provide an array with functionsstack;
Do you have more examples?
Please Pull Request them! :)