Javascript File Download
Javascript function to trigger browser to save data to file as if it was downloaded.
Installation
npm install js-file-download --saveUsage
var fileDownload = require('js-file-download');
fileDownload(data, 'filename.csv');Javascript function that triggers browser to save javascript-generated content to a file
Javascript function to trigger browser to save data to file as if it was downloaded.
npm install js-file-download --savevar fileDownload = require('js-file-download');
fileDownload(data, 'filename.csv');