A simple asynchronous file downloader based on axios.
$ npm install async-file-dl
const { download } = require('async-file-dl');
download('http://example.com/', '.', 'example.html')
.then(file => console.log('download successful')
.catch(console.error);