js-file-download
Javascript function that triggers browser to save javascript-generated content to a file
🌟 Show real-time usage chart on js-file-download's README.md, just copy the code below.## Usage Trend
[](https://npm-compare.com/js-file-download#timeRange=THREE_YEARS)
🌟 Show GitHub stars trend chart on js-file-download's README.md, just copy the code below.## GitHub Stars Trend
[](https://npm-compare.com/js-file-download)
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');