Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A very simple data queue processing library.
JavaScript
tag: v0.0.2

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
CHANGELOG.md
LICENSE
README.md
package.json

README.md

Node.js - qflow

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('error', function(err) {
  console.error(err)
})
.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

Something went wrong with that request. Please try again.