## Usage Trend [](https://npm-compare.com/js-file-download#timeRange=THREE_YEARS)
## GitHub Stars Trend [](https://npm-compare.com/js-file-download)
Javascript function to trigger browser to save data to file as if it was downloaded.
npm install js-file-download --save
var fileDownload = require('js-file-download'); fileDownload(data, 'filename.csv');