Call Given Async Functions In Given Order
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.npmignore
.travis.yml
README.md
index.js
package.json
test.js

README.md

call-all Build Status

Call Given Async Functions In Given Order

Install

$ npm install call-all

Usage

call = require('call-all')

search = call(searchDDG, searchGoogle, searchBing)

search('hello world', function (error, results) {

  results[0]
  // => results by DDG

  results[1]
  // => results by Google

  results[2]
  // => results by Bing

})

function searchDDG (keyword, callback) {}
function searchGoogle (keyword, callback) {}
function searchBing (keyword, callback) {}

See test.js for more info.