0.0.1 • Published 10 years ago
imgur-save v0.0.1
imgur-save
library that batch saves imgur links.
#Example
var imgArray = ['http://i.imgur.com/Noj68K1.jpg'
, 'http://i.imgur.com/CZOtkjF.jpg'
, 'http://i.imgur.com/zN5OGii.jpg'
, 'http://i.imgur.com/QDON2SG.jpg'
, 'http://i.imgur.com/fr0acye.jpg'];
imgurSave.downloadPost(imgArray, "../", 'testuser', function(err, results) {
if (!err) done();
});
will create the following files. It will call the callback when all images are finished downloading
../testuser_Noj68K1.jpg
../testuser_CZOtkjF.jpg
../testuser_CZOtkjF.jpg
../testuser_QDON2SG.jpg
../testuser_fr0acye.jpg
0.0.1
10 years ago