0.0.1 • Published 4 years ago

@sethlessard/fd-js v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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 (kenneth.jiang@gmail.com) kennethjiang/js-file-download