@sethlessard/fd-js
v0.0.1
Published
Javascript function that triggers browser to save javascript-generated content to a file
Downloads
4
Maintainers
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');
Credits
This code is a fork of Kenneth Jiang's ([email protected]) kennethjiang/js-file-download