node package manager

tq

tiny queue

TQ is a flexible, tiny queue library for node.js

var queue = require("tq").create().start();
 

Another variation

var queue = require('tq').queue();
 
 
[
function() {
this();
},
function() {
this()
},
function() {
this();
}
].forEach(queue.push);
 
queue.start();

pushes a queue to the end

pushes a queue to the beginning (next up)

starts a queue

stops a queue