Javascript File Download Javascript function to trigger browser to save data to file as if it was downloaded. Installation npm install download-file-msblob--save Usage var fileDownload = require('download-file-msblob'); fileDownload(data, 'filename.csv');