node-wget-promise
simplifies retrieving files from any URL, with Promise support.
This package is forked and enhanced from wget-improved
npm install node-wget-promise --save
const wget = require('node-wget-promise');
wget('http://nodejs.org/images/logo.svg');
const wget = require('node-wget-promise');
wget([url], {
onStart: [Callback],
onProgress: [Callback],
output: [outputFilePath]
})
.then(metadata => [fileMetadata])
.catch(err => [Error]);
const wget = require('node-wget-promise');
(async () => {
await wget([url]);
console.log('Done');
})();