1.2.2 • Published 9 years ago
node-aggregator v1.2.2
#Data aggregation tool
usefull to manage cache and keed updated
Example
Basic
var sum = new Aggregator(function(new_value, memo, callback){
callback(new_value + memo);
}, 0);
sum.add(1);
console.log(sum.value()); // => 1;
sum.add(2);
console.log(sum.value()); // => 3;