title: image-scraper nodeJS. How to send callback function to result array
body: <p>I tried to build easy app to build img-parser and started to use library image-scraper(<a href="https://github.com/leon-vv/node-image-scraper" rel="nofollow noreferrer">node-image-scraper</a>). And faced with a problem. The question is: How could I get final array of objects</p>
  
  <pre><code>scraper.scrape(function(image) {
          images_list.push(image);
  })
  </code></pre>
  
  <p>promises - doesn't work, I tried to send call back inside parameter of functions it also not gave me result.</p>