I need a service to download an excel file from Amazon S3, then parse with node-xlsx
The problem is that I can\'t get xlsx to parse the file. When I try to read back
fs.writeFile is asynchronous. The file won't be there till the call back is called.
fs.writeFile
https://nodejs.org/api/fs.html#fs_fs_writefile_file_data_options_callback
fs.writeFile('message.txt', 'Hello Node.js', (err) => { if (err) throw err; console.log('It\'s saved!'); });