Skip to content

Instantly share code, notes, and snippets.

@eldargab
Created December 28, 2012 21:09
Show Gist options
  • Save eldargab/4401915 to your computer and use it in GitHub Desktop.
Save eldargab/4401915 to your computer and use it in GitHub Desktop.
var Flow = require('make-flow')
// definition
var app = Flow()
.def('sum1', function (done) {
add(1, 2, done)
})
.def('sum2', function (done) {
add(3, 4, done)
})
.def('result', function (sum1, sum2, done) {
add(sum1, sum2, done)
})
// usage
app.run().eval('result', function (err, result) {
// do something with result
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment