Skip to content

jprichardson/node-qflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js - qflow

build status

A very simple data queue processing library.

Why?

BatchFlow didn't cut it because I needed to keep batch processing a data set.

What About queue-flow?

Do not confuse this (qflow) with the great library queue-flow by David Ellis. queue-flow does much more and very powerful, you should check it out. I wanted something simpler for my needs. I unfortunatley chose the name qflow after queue-flow was already taken. I did this because I wanted to keep a cohesive naming scheme with my other flow libraries: NextFlow, BatchFlow, and TriggerFlow.

Installation

npm install qflow

Example

Super simple example:

var results = []
qflow([1,2,3,4])
.deq(function(val, next) {
  results.push(val * 2)
  next()
})
.on('empty', function() {
  console.dir(results) //[2,4,6,8]
})
.start(1) //essentially process sequentially.

Methods

Todo. In the meantime, use the source Luke.

License

(MIT License)

Copyright 2012, JP Richardson jprichardson@gmail.com

About

A very simple data queue processing library.

Resources

License

Stars

Watchers

Forks

Packages

No packages published