async-autotarget
Select a specific subtree (or union of subtrees) of required functions from an input object appropriate for async.auto() [1]. The goal is to simplify writing async workflows with async.auto.
example
var async = ;var autotarget = ; // assume you have a bunch of functions which do IO to get you cool stuff, and some depend on the results of othersvar everything = 'vase': getVase 'roses': vase getRoses 'candles': 'roses' getCandles 'oysters': getOysters 'dessert': getDessert 'movie': getMovie 'popcorn': 'movie' getPopcorn // no point in popcorn if you don't have a movie; // Some nights you want to have a lovely evening with all the fixings { async;} // Sometime you really just want the movie and the popcorn, nothing wrong with that { // popcorn requires a movie in `everything`, so just need to select 'popcorn' here async;} // You can pass an array to get the union of two subtrees also (this lets you get dessert too) { async;}