Javascript File Download
Javascript function to trigger browser to save data to file as if it was downloaded.Installation
npm install js-file-download --save
Usage
var fileDownload = require('js-file-download');
fileDownload(data, 'filename.csv');
npm install js-file-download --save
var fileDownload = require('js-file-download');
fileDownload(data, 'filename.csv');
Bytes is a JavaScript newsletter you'll actually enjoy reading.
Delivered every Monday, for free.