Javascript function to trigger browser to save data to file as if it was downloaded.
npm install atuo-download --save
var autoDownload = require('atuo-download');
autoDownload(data, 'filename');
- data: URL you need download
- filename: Is a name you save to systems