const pizzaGuy = require('../dist/pizza-guy');
const images = [
  'http://www.pizzabellabristol.com/images/pizza.jpg',
  'http://www.italianpizzas.co.uk/assets/images/italianpizza.jpg',
  'http://www.mrwallpaper.com/wallpapers/delicious-italian-pizza.jpg',
  'http://previews.123rf.com/images/foodandmore/foodandmore1209/foodandmore120900019/15145674-Delicious-freshly-cooked-homemade-vegetarian-Italian-pizza-topped-with-cheese-vegetables-and-fresh-h-Stock-Photo.jpg',
  'http://previews.123rf.com/images/foodandmore/foodandmore1304/foodandmore130400224/19271412-Italian-pizza-with-tomato-topped-with-melted-golden-cheese-herbs-and-basil-served-on-a-round-wooden--Stock-Photo.jpg',
  'http://www.godine.co.uk/blog/wp-content/uploads/2009/12/Italian-pizza1.jpg',
  'http://www.chamonix.com/img/sitra/fiche/39493-1-pizza-valerio.jpg',
  'http://previews.123rf.com/images/jagcz/jagcz1211/jagcz121100303/16598280-Delicious-italian-pizza-served-on-wooden-table-Stock-Photo-pizza-food-vegetarian.jpg'
];

pizzaGuy
  .deliver(images)
  .onAddress('./demo/downloaded-images')
  .onSuccess((info) => {
    console.log(`Downloaded: ${info.fileName}`);
  })
  .onError((info) => {
    console.log(`Download ${info.fileName} failed`);
  })
  .start();

@@ -456,32 +456,39 @@
 ck-Photo.jpg',%0A 
+ %7B url:
  'http://preview
@@ -678,26 +678,64 @@
 -Photo.jpg',
-%0A
  
+name: 'pizza-italian-1.jpg' %7D,%0A  %7B url:
  'http://www
@@ -796,26 +796,64 @@
 pizza1.jpg',
-%0A
  
+name: 'pizza-italian-2.jpg' %7D,%0A  %7B url:
  'http://www
@@ -905,26 +905,62 @@
 alerio.jpg',
-%0A
  
+name: 'pizza-valerio.jpg' %7D,%0A  %7B url:
  'http://pre
@@ -1107,16 +1107,48 @@
 ian.jpg'
+, name: 'pizza-vegetarian.jpg' %7D
 %0A%5D;%0A%0Apiz

update demo