Держи
var async = require('async');
async.auto({
one: getDocument,
two: ['one', otherDataDocument]
}, function () {
})
function getDocument(callback) {
var data = "it works";
callback(null, data);
}
function otherDataDocument(callback, result) {
console.log(result);
callback(null);
}