Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

image downloader extension in nodejs

const download = require('image-downloader') const options = {  url: 'http://someurl.com/image.jpg',  dest: '/path/to/dest'                // will be saved to /path/to/dest/image.jpg} download.image(options)  .then(({ filename }) => {    console.log('Saved to', filename)  // saved to /path/to/dest/image.jpg  })  .catch((err) => console.error(err))
Source by www.npmjs.com #
 
PREVIOUS NEXT
Tagged: #image #downloader #extension #nodejs
ADD COMMENT
Topic
Name
7+4 =