call-all

Call Given Async Functions In Given Order

npm install call-all
4 downloads in the last week
10 downloads in the last month

call-all

Call Given Async Functions In Given Order

Install

$ npm install call-all

Usage

search = juxt(searchDDG, searchGoogle, searchBing)('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) {}
npm loves you