js-file-download

Javascript function that triggers browser to save javascript-generated content to a file

Stats

StarsIssuesVersionUpdatedCreatedSize
js-file-download
78740.4.122 years ago5 years agoMinified + gzip package size for js-file-download in KB

Readme

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');

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.