How to avoid callback hell after one AJAX call : <p>I have a nodeJS application that requests data from an API once. I then want to do some processing on this data by using separate functions. However, since the AJAX is asynchronous, I'm forced to use async as follows: </p>

<pre><code>async.series(
[
   function(callback) { getContentFromAPI("banana",callback); },
   function(callback) { doSomeProcess1(callback); },
   function(callback) { doSomeProcess2(callback); },
   function(callback) { doSomeProcess3(callback); },
   function(callback) { doSomeProcess4(callback); },
]
);
</code></pre>

<p>Is there any way this can be done better? I'm only requesting one asynchronous process and want to avoid using async since all the other processes are sync.</p>

<p>What should I do?</p>
