npm.io
0.5.0 • Published 6 years ago

generate-zip-images

Licence
MIT
Version
0.5.0
Deps
6
Size
2.8 MB
Vulns
25
Weekly
0

Download Images as a Zip file

ORIGINAL PACKAGE: https://github.com/ravinaenu/files-download-zip

This library is used to download images in bulk as a zip file. You need to specify an array of images URL to download. The library will fetch all the images and will create a zip file.

Installation

This package is distributed via npm:

npm install files-download-zip

Usage

const downloadImagesAsZip = require('files-download-zip');

const imgDataArray = [ "http://www.bollywoodlife.com/wp-content/uploads/2014/12/shenaz-treasurywala-111214.jpg" ];

const zipFileName = 'imagesZip';

downloadImagesAsZip.execute(imgDataArray, zipFileName, function() { // callback function

alert('Done');

});

Keywords