downloadFile - General improvements
downloadFile()
at the moment it downloads the data and writes the data to file. I'm going to remove writing to file and give the user the option to choose what to do with it.
downloadFile({url:http://exmaple.com})
.then(data => tryWriteFile(data))
Also, it's an async function and it's returning a promise, it's better to await
the promise not return it. Returning it resolves to a new promise, awaiting resolves it.
Edited by ltngames